From 6af671997bd2c370b131c4c43437396fc3453f73 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Wed, 26 Apr 2023 09:53:07 +0100 Subject: [PATCH] pause timer reset --- api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 0fdc2c6..b81bcdb 100644 --- a/api.lua +++ b/api.lua @@ -3455,8 +3455,9 @@ function mob_class:on_step(dtime, moveresult) return - elseif self.order == "stand" then + elseif self.pause_timer < 0 and self.order == "stand" then + self.pause_timer = 0 self:set_velocity(0) self:set_animation("stand", true) end