From e862766fea83b6434b5fa53caa9bc21dd035009d Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 12 Mar 2021 19:23:11 +0100 Subject: [PATCH] feat: adapt parent to new functions --- .../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 fcdcce5..6298e5c 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/parent.lua @@ -38,7 +38,7 @@ function FighterParent:setPP(value, relative) end function FighterParent:applyDeath() - if (self.abstract.hp <= 0 and self.isAlive) then + if ((not self.abstract:isAlive()) and self.isAlive) then self:die() end end