feat: adapt parent to new functions
This commit is contained in:
parent
69d296b2f7
commit
e862766fea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue