luafight
parent
1128d19217
commit
fdb1e52792
|
@ -61,6 +61,7 @@ function BuffManager:Init()
|
|||
for i = 1, self.buffList.size do
|
||||
local list = self.buffList.vList[i]
|
||||
for j=1, list.size do
|
||||
list.buffer[j]:OnEnd()
|
||||
putBuff(list.buffer[j])
|
||||
end
|
||||
list:Clear()
|
||||
|
|
|
@ -173,11 +173,11 @@ end
|
|||
|
||||
function BattleLogic.AddRole(roleData)
|
||||
curUid = curUid + 1
|
||||
local data = rolePool:Get()
|
||||
data:Init(curUid, roleData)
|
||||
objList:Add(curUid, data)
|
||||
if not data.isDead then
|
||||
BattleLogic.Event:DispatchEvent(BattleEventName.AddRole, data)
|
||||
local role = rolePool:Get()
|
||||
role:Init(curUid, roleData)
|
||||
objList:Add(curUid, role)
|
||||
if not role.isDead then
|
||||
BattleLogic.Event:DispatchEvent(BattleEventName.AddRole, role)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -70,7 +70,12 @@ function RoleLogic:Init(uid, data)
|
|||
self.isDead = self:GetRoleData(RoleDataName.Hp) <= 0
|
||||
self.Auto = true
|
||||
self.IsDebug = false
|
||||
self.enable = true
|
||||
|
||||
self.enable = true --眩晕
|
||||
self.ctrl_slient = false --沉默
|
||||
self.lockTarget = nil --嘲讽
|
||||
self.ctrl_noheal = false --禁疗
|
||||
self.ctrl_blind = false --致盲
|
||||
|
||||
if self.skill and not self.superSkill then
|
||||
self.updateFunc = function()
|
||||
|
@ -249,7 +254,6 @@ function RoleLogic:Dispose()
|
|||
skillPool:Put(self.superSkill)
|
||||
self.superSkill = nil
|
||||
end
|
||||
BattleLogic.BuffMgr:ClearBuff(self)
|
||||
end
|
||||
|
||||
function RoleLogic:Update()
|
||||
|
|
Loading…
Reference in New Issue