From 382032c87ca961ea00a62001175624de1aa075ba Mon Sep 17 00:00:00 2001 From: Kyep <16434066+Kyep@users.noreply.github.com> Date: Wed, 2 Dec 2020 07:19:17 +0000 Subject: [PATCH] Fix: allow AIs to restore safties on hacked bots (#15037) Co-authored-by: Kyep --- code/modules/mob/living/simple_animal/bot/bot.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index 60efcb39cd7..094a35372c1 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -879,7 +879,7 @@ Pass a positive integer as an argument to override a bot's default speed. update_controls() /mob/living/simple_animal/bot/proc/canhack(mob/M) - return ((issilicon(M) && !emagged) || M.can_admin_interact()) + return ((issilicon(M) && (!emagged || hacked)) || M.can_admin_interact()) /mob/living/simple_animal/bot/proc/handle_hacking(mob/M) // refactored out of Topic/ to allow re-use by TGUIs if(!canhack(M))