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