mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-22 04:24:20 +01:00
Merge pull request #10028 from SomeSortaSquid/master
Fix for Airlocks Shocking Remotely
This commit is contained in:
@@ -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()
|
||||
|
||||
..()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user