From 8c9f814370493bd7dd9fb794f3ecedfd7df617a3 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 16 May 2021 08:36:06 +0200 Subject: [PATCH] fix: fix a crash --- .../scenes/battlesystem/controllers/fighters/parent.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua index c990bae..5786fd4 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua @@ -84,7 +84,7 @@ end function FighterParent:receiveDamage(value, type, element, isSpecial, fromWho) 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 self:applyDamage(damages)