更改一下死亡召唤触发时机
This commit is contained in:
parent
83db836cb1
commit
c2ddb208b9
@ -691,22 +691,22 @@ function BattleController:checkTeamIsDead(callback)
|
||||
|
||||
local defTeam = self.battleData:getDefTeam()
|
||||
if not defTeam or defTeam:getIsDead() then -- 怪物死了, 直接进入刷新逻辑
|
||||
if self.waveIndex >= self.maxWaveIndex then
|
||||
if callback then
|
||||
callback()
|
||||
end
|
||||
else
|
||||
self:onDefDead(function()
|
||||
self.defTeam:removeAllBuff()
|
||||
if self.battleData:getDefTeam():getIsDead() then
|
||||
self:_findNextDefUnit()
|
||||
else
|
||||
self:onDefDead(function()
|
||||
self.defTeam:removeAllBuff()
|
||||
if self.battleData:getDefTeam():getIsDead() then
|
||||
if self.waveIndex >= self.maxWaveIndex then
|
||||
if callback() then
|
||||
callback()
|
||||
end
|
||||
else
|
||||
self:_findNextDefUnit()
|
||||
end
|
||||
end)
|
||||
end
|
||||
else
|
||||
if callback() then
|
||||
callback()
|
||||
end
|
||||
end
|
||||
end)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user