fix bug
This commit is contained in:
parent
88e64acf32
commit
239132c0a6
@ -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 -- 伤害
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user