mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Containment field exploit fix (#11228)
Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2916489860
commit
83447c8811
@@ -47,10 +47,18 @@
|
||||
/obj/machinery/containment_field/ex_act(severity)
|
||||
return 0
|
||||
|
||||
/obj/machinery/containment_field/Crossed(mob/living/L)
|
||||
if(!istype(L) || L.is_incorporeal())
|
||||
/obj/machinery/containment_field/Crossed(atom/A)
|
||||
if(!istype(A) || A.is_incorporeal())
|
||||
return
|
||||
shock(L)
|
||||
if(isliving(A))
|
||||
var/mob/living/L = A
|
||||
shock(L)
|
||||
return
|
||||
if(A.density)
|
||||
if(istype(A,/obj/machinery/containment_field) || istype(A,/obj/effect) || istype(A,/obj/singularity))
|
||||
return
|
||||
else
|
||||
Destroy()
|
||||
|
||||
/obj/machinery/containment_field/HasProximity(turf/T, datum/weakref/WF, old_loc)
|
||||
if(isnull(WF))
|
||||
|
||||
Reference in New Issue
Block a user