fix: fix a crash
This commit is contained in:
parent
6818a441df
commit
8c9f814370
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ end
|
||||||
|
|
||||||
function FighterParent:receiveDamage(value, type, element, isSpecial, fromWho)
|
function FighterParent:receiveDamage(value, type, element, isSpecial, fromWho)
|
||||||
local damages = battleutils.computeReceivingDamages(value, self:getStats(), isSpecial, self.isDefending)
|
local damages = battleutils.computeReceivingDamages(value, self:getStats(), isSpecial, self.isDefending)
|
||||||
damages = battleutils.applyProtectTypes(damages, type, self:getProtecTypes())
|
damages = battleutils.applyProtectTypes(damages, type, self.abstract:getProtecTypes())
|
||||||
|
|
||||||
if (battleutils.isAttackSuccess(nil)) then
|
if (battleutils.isAttackSuccess(nil)) then
|
||||||
self:applyDamage(damages)
|
self:applyDamage(damages)
|
||||||
|
|
Loading…
Reference in a new issue