summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-12-03 20:33:42 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-12-03 20:33:42 +0000
commit0a6fdbc3f13eccb274ee29edd9ed8dcfc44f34e3 (patch)
treed591d0be5e6dfda6a7ac5df99e85f3c5a807348c
parentdd04be9749ff59b1d0b9e5285d34ce7c63fd67ce (diff)
self.animation check
-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