Reset pause timer to 0
parent
991bba0a1d
commit
e1812b2cdb
|
@ -658,6 +658,11 @@ mobs.mob_step = function(self, dtime)
|
||||||
if self.hostile and self.attacking then
|
if self.hostile and self.attacking then
|
||||||
mobs.set_yaw_while_attacking(self)
|
mobs.set_yaw_while_attacking(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--perfectly reset pause_timer
|
||||||
|
if self.pause_timer < 0 then
|
||||||
|
self.pause_timer = 0
|
||||||
|
end
|
||||||
--do normal ai
|
--do normal ai
|
||||||
else
|
else
|
||||||
--jump only (like slimes)
|
--jump only (like slimes)
|
||||||
|
|
Loading…
Reference in New Issue