From da0238cb846beb7a79b64c7b3e4386df6b0ab5d2 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 3 Aug 2018 10:06:05 +0100 Subject: [PATCH] fix animation flip --- api.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api.lua b/api.lua index b22d410..917bf66 100644 --- a/api.lua +++ b/api.lua @@ -182,6 +182,12 @@ local set_animation = function(self, anim) self.animation.current = self.animation.current or "" + -- only set different animation + if anim ~= "punch" and anim ~= "shoot" + and string.find(self.animation.current, anim) then + return + end + -- check for more than one animation local num = 0