From 71de6caeed23f65ea14b967b027aea3c48546970 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Sun, 12 Mar 2023 15:55:54 -0500 Subject: [PATCH] fixes borgs not being able to use APCs (#20611) * fixes borgs not being able to use APCs * also this --- code/modules/power/apc/apc.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/apc/apc.dm b/code/modules/power/apc/apc.dm index 6a03a991388..5d1a24753e4 100644 --- a/code/modules/power/apc/apc.dm +++ b/code/modules/power/apc/apc.dm @@ -496,7 +496,7 @@ if(issilicon(user)) var/mob/living/silicon/ai/AI = user var/mob/living/silicon/robot/robot = user - if(aidisabled || (malfhack && istype(malfai) && ((istype(AI) && (malfai != AI && malfai != AI.parent))) || (istype(robot) && (robot in malfai.connected_robots)))) + if(aidisabled || (malfhack && istype(malfai) && ((istype(AI) && (malfai != AI && malfai != AI.parent))) || (istype(robot) && malfai && !(robot in malfai.connected_robots)))) if(!loud) to_chat(user, "\The [src] has AI control disabled!") return FALSE