对手先手期间,英雄不会播放死亡动作bug修复

This commit is contained in:
xiekaidong 2023-06-14 10:03:21 +08:00
parent c95991df76
commit 6cf247d86d

View File

@ -1645,7 +1645,7 @@ function BattleUnitComp:takeDamageOrCure(atker, num, effectType, effectStatus, d
end end
local hpPercent = self.unitEntity:getHpPercent() local hpPercent = self.unitEntity:getHpPercent()
self.battleController:refreshHp(self.side, hp, hpPercent) self.battleController:refreshHp(self.side, hp, hpPercent)
if not atker:getIsFinalBlock() or not self.battleController:getIsLastInstruction() then if not atker:getIsFinalBlock() or atker:getIsCentralizedAttack() then
if damage < 0 then if damage < 0 then
self.team:playHurt() self.team:playHurt()
end end