1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-24 01:30:22 +01:00

fix animation flip

This commit is contained in:
TenPlus1 2018-08-03 10:06:05 +01:00
parent 0482581f18
commit da0238cb84

View File

@ -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