lua fight
parent
db1471aa13
commit
1bc6ece387
|
@ -697,17 +697,17 @@ local passivityList = {
|
|||
local ct2 = args[7]
|
||||
local i1 = args[8]
|
||||
|
||||
local auraBuff = Buff.Create(role, BuffName.Aura, 0, function (role)
|
||||
local changeBuff1 = Buff.Create(role, BuffName.PropertyChange, 0, propertyList[pro1], f2, ct1)
|
||||
local auraBuff = Buff.Create(role, BuffName.Aura, 0, function (r)
|
||||
local changeBuff1 = Buff.Create(r, BuffName.PropertyChange, 0, propertyList[pro1], f2, ct1)
|
||||
changeBuff1.cover = true
|
||||
changeBuff1.maxLayer = i1
|
||||
|
||||
local changeBuff2 = Buff.Create(role, BuffName.PropertyChange, 0, propertyList[pro2], f3, ct2)
|
||||
local changeBuff2 = Buff.Create(r, BuffName.PropertyChange, 0, propertyList[pro2], f3, ct2)
|
||||
changeBuff2.cover = true
|
||||
changeBuff2.maxLayer = i1
|
||||
|
||||
role:AddBuff(changeBuff1)
|
||||
role:AddBuff(changeBuff2)
|
||||
r:AddBuff(changeBuff1)
|
||||
r:AddBuff(changeBuff2)
|
||||
end)
|
||||
auraBuff.interval = f1
|
||||
role:AddBuff(auraBuff)
|
||||
|
@ -719,8 +719,8 @@ local passivityList = {
|
|||
local f1 = args[1]
|
||||
local f2 = args[2]
|
||||
|
||||
local auraBuff = Buff.Create(role, BuffName.Aura, 0, function (role)
|
||||
BattleUtil.CalTreat(role, role, f2)
|
||||
local auraBuff = Buff.Create(role, BuffName.Aura, 0, function (r)
|
||||
BattleUtil.CalTreat(r, r, f2)
|
||||
end)
|
||||
auraBuff.interval = f1
|
||||
role:AddBuff(auraBuff)
|
||||
|
|
|
@ -50,6 +50,7 @@ function RoleLogic:Init(uid, data)
|
|||
self.roleData = data
|
||||
|
||||
self.data:Init(self, data.property)
|
||||
self.isDead = self:GetRoleData(RoleDataName.Hp) <= 0
|
||||
|
||||
self.camp = data.camp --阵营 0:我方 1:敌方
|
||||
self.name = data.name
|
||||
|
@ -92,7 +93,6 @@ function RoleLogic:Init(uid, data)
|
|||
self.aiIndex = 1
|
||||
self.aiTempCount = 0
|
||||
|
||||
self.isDead = self:GetRoleData(RoleDataName.Hp) <= 0
|
||||
self.Auto = true
|
||||
self.IsDebug = false
|
||||
|
||||
|
|
Loading…
Reference in New Issue