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