feat: adapt parent to new functions

This commit is contained in:
Kazhnuz 2021-03-12 19:23:11 +01:00
parent 69d296b2f7
commit e862766fea

View file

@ -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