diff --git a/api.lua b/api.lua index 5bd62e1..eb2d173 100644 --- a/api.lua +++ b/api.lua @@ -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