This commit is contained in:
chenxi 2023-04-23 19:24:51 +08:00
parent 88e64acf32
commit 239132c0a6

View File

@ -1098,7 +1098,7 @@ function BattleUnitComp:takeDamageOrCure(atker, num, effectType, effectStatus)
end
local shieldHpDiff = self.unitEntity:getShieldHp() - shieldHpBefore
if shieldHpDiff < 0 then -- 说明护盾减少了
self:handleShield(shieldHpDiff, self)
self.team:handleShield(shieldHpDiff, self)
end
local x, y = self.baseObject:fastGetLocalPosition()
if num < 0 then -- 伤害