mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Cleaned Up Airlock Remote Electrocution Fix
Tested locally, works as expected. Airlocks only electrocute people standing next to them.
This commit is contained in:
@@ -55,12 +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.x - L.x <= 1 && A.x - L.x >= -1 && A.y - L.y <= 1 && A.y - L.y >= -1)
|
||||
if(A.Adjacent(L))
|
||||
if(A.isElectrified())
|
||||
if(A.shock(L, 100))
|
||||
return 0
|
||||
else
|
||||
return 0
|
||||
if(A.panel_open)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user