反伤bug修复

This commit is contained in:
xiekaidong 2023-08-08 17:49:03 +08:00
parent c950bc52be
commit 189d421c2b
2 changed files with 7 additions and 2 deletions

View File

@ -1743,8 +1743,9 @@ function BattleUnitComp:takeDamageOrCure(atker, num, effectType, effectStatus, d
team:checkPassiveEvent(BattleConst.PASSIVE_EVENT.ON_DEAD_WITH_BLEED)
end
if self.actionOverCallback then -- 被反击时死亡
self:onAttackOver()
if self.actionOverCallback then -- 被反伤时死亡
self.actionOverCallback = nil
self.battleController:enterNextTeamAction()
end
self.battleController:resetTimeSpeed(true)

View File

@ -597,6 +597,10 @@ function BattleTeam:setIsFinalBlock(isFinalBlock)
end
function BattleTeam:getIsFinalBlock()
if self.isFinalBlock == nil then
return true
end
return self.isFinalBlock
end