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:
parent
0482581f18
commit
da0238cb84
6
api.lua
6
api.lua
@ -182,6 +182,12 @@ local set_animation = function(self, anim)
|
|||||||
|
|
||||||
self.animation.current = self.animation.current or ""
|
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
|
-- check for more than one animation
|
||||||
local num = 0
|
local num = 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user