summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.lua3
1 files changed, 2 insertions, 1 deletions
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