[MIRROR] Mines no longer get triggered by directional lights (#3810)

* Mines no longer get triggered by directional lights (#57349)

fix #55382

* Mines no longer get triggered by directional lights

Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-03-03 18:35:25 +00:00
committed by GitHub
co-authored by Ghilker
parent b8ca239c2d
commit 91fa56575e
+4 -1
View File
@@ -36,9 +36,10 @@
visible_message("<span class='danger'>\The [src] beeps softly, indicating it is now active.<span>", vision_distance = COMBAT_MESSAGE_RANGE)
/obj/effect/mine/Crossed(atom/movable/AM)
. = ..()
if(triggered || !isturf(loc) || !armed)
return
. = ..()
if(AM.movement_type & FLYING)
return
@@ -51,6 +52,8 @@
/// When something sets off a mine
/obj/effect/mine/proc/triggermine(atom/movable/triggerer)
if(iseffect(triggerer))
return
if(triggered) //too busy detonating to detonate again
return
if(triggerer)