fixes borgs not being able to use APCs (#20611)

* fixes borgs not being able to use APCs

* also this
This commit is contained in:
GDN
2023-03-12 15:55:54 -05:00
committed by GitHub
parent 90e8ec7948
commit 71de6caeed
+1 -1
View File
@@ -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, "<span class='danger'>\The [src] has AI control disabled!</span>")
return FALSE