From 186475ed79ce9f5c994d8c746d0de42f2024c59a Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 6 Jan 2016 18:01:28 +0000 Subject: [PATCH] fix attack glitch when jumping --- api.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index b63689e..f16a862 100644 --- a/api.lua +++ b/api.lua @@ -415,8 +415,10 @@ do_jump = function(self) }) end else - self.state = "stand" - set_animation(self, "stand") + if self.state ~= "attack" then + self.state = "stand" + set_animation(self, "stand") + end end end