diff --git a/code/datums/wires/airlock.dm b/code/datums/wires/airlock.dm index cef139cc476..3e9f488bb29 100644 --- a/code/datums/wires/airlock.dm +++ b/code/datums/wires/airlock.dm @@ -55,9 +55,10 @@ var/const/AIRLOCK_WIRE_LIGHT = 512 /datum/wires/airlock/CanUse(mob/living/L) var/obj/machinery/door/airlock/A = holder if(iscarbon(L)) - if(A.isElectrified()) - if(A.shock(L, 100)) - return 0 + if(A.Adjacent(L)) + if(A.isElectrified()) + if(A.shock(L, 100)) + return 0 if(A.panel_open) return 1 return 0 @@ -211,4 +212,4 @@ var/const/AIRLOCK_WIRE_LIGHT = 512 A.lights = !A.lights A.update_icon() - ..() \ No newline at end of file + ..()