From ac923649eb82c627448f364488680965a3ad4aeb Mon Sep 17 00:00:00 2001 From: Furlucis Date: Thu, 27 Mar 2014 02:16:38 -0400 Subject: [PATCH] Allows AIs to use hazardlocks I am absolutely certain that there is a better way to do this. Someone else can do it, I'm just making it work. --- code/game/machinery/doors/firedoor.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm index 3fd77b8b34b..05a5fc13241 100644 --- a/code/game/machinery/doors/firedoor.dm +++ b/code/game/machinery/doors/firedoor.dm @@ -98,7 +98,7 @@ "\The [src]", "Yes, [density ? "open" : "close"]", "No") if(answer == "No") return - if(user.stat || !user.canmove || user.stunned || user.weakened || user.paralysis || get_dist(src, user) > 1) + if(user.stat || user.stunned || user.weakened || user.paralysis || (!user.canmove && !isAI(user)) || (get_dist(src, user) > 1 && !isAI(user))) user << "Sorry, you must remain able bodied and close to \the [src] in order to use it." return