From 237b0cdcb4f803e4b9659b23944a1e5da627da8e Mon Sep 17 00:00:00 2001 From: Waselon <69199543+Waselon@users.noreply.github.com> Date: Sun, 8 Sep 2024 09:26:01 +0300 Subject: [PATCH] Update ai_behavior.dm Signed-off-by: Waselon <69199543+Waselon@users.noreply.github.com> --- code/modules/ai/ai_behaviors/ai_behavior.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/ai/ai_behaviors/ai_behavior.dm b/code/modules/ai/ai_behaviors/ai_behavior.dm index ae9deb9f51d..05646b0c347 100644 --- a/code/modules/ai/ai_behaviors/ai_behavior.dm +++ b/code/modules/ai/ai_behaviors/ai_behavior.dm @@ -345,6 +345,8 @@ These are parameter based so the ai behavior can choose to (un)register the sign /datum/ai_behavior/proc/ai_do_move() if(!mob_parent?.canmove || mob_parent.do_actions) return + if(current_action == ESCORTING_ATOM && (get_dist(mob_parent, atom_to_walk_to) <= 0)) + return mob_parent.next_move_slowdown = 0 var/step_dir if(get_dist(mob_parent, atom_to_walk_to) == distance_to_maintain)