self.animation check

This commit is contained in:
TenPlus1 2016-12-03 20:33:42 +00:00
parent dd04be9749
commit 0a6fdbc3f1
1 changed files with 2 additions and 1 deletions

View File

@ -384,7 +384,8 @@ function check_for_death(self)
end
-- default death function and die animation (if defined)
if self.animation.die_start
if self.animation
and self.animation.die_start
and self.animation.die_end then
self.attack = nil