From 0a6fdbc3f13eccb274ee29edd9ed8dcfc44f34e3 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 3 Dec 2016 20:33:42 +0000 Subject: [PATCH] self.animation check --- api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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