mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user