更改一下死亡召唤触发时机

This commit is contained in:
xiekaidong 2023-06-03 17:46:24 +08:00
parent 83db836cb1
commit c2ddb208b9

View File

@ -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
if self.waveIndex >= self.maxWaveIndex then
if callback() then
callback()
end
else
self:_findNextDefUnit()
end
else
if callback() then
callback()
end
end
end)
end
return true
end
return false