From 9f7d4a128e4e051166eb01835f8ba1a571cdeee4 Mon Sep 17 00:00:00 2001 From: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com> Date: Sun, 5 May 2024 20:38:54 +0200 Subject: [PATCH] fixing detaining mode (#25334) --- code/modules/mob/living/simple_animal/bot/ed209bot.dm | 5 ++--- code/modules/mob/living/simple_animal/bot/secbot.dm | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/simple_animal/bot/ed209bot.dm b/code/modules/mob/living/simple_animal/bot/ed209bot.dm index b96a046710e..c9d4feb15aa 100644 --- a/code/modules/mob/living/simple_animal/bot/ed209bot.dm +++ b/code/modules/mob/living/simple_animal/bot/ed209bot.dm @@ -285,12 +285,11 @@ back_to_hunt() return - if(no_handcuffs) // should we not cuff? + if(!(iscarbon(target) && target.canBeHandcuffed())) back_to_idle() return - if(!(iscarbon(target) && target.canBeHandcuffed())) - back_to_idle() + if(no_handcuffs) // should we not cuff? return if(currently_cuffing) diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index 2b4821ddc54..79f7c56c449 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -347,14 +347,14 @@ back_to_hunt() return // target is stunned and nearby - if(no_handcuffs) // should we not cuff? - back_to_idle() - return if(!(iscarbon(target) && target.canBeHandcuffed())) back_to_idle() return + if(no_handcuffs) // should we not cuff? + return + if(currently_cuffing) return