Checks for emagged on firealarms to properly disable them from activating unless pulled manually. (#26170)

This commit is contained in:
Spaghetti-bit
2024-07-07 22:46:30 +00:00
committed by GitHub
parent d118388ad8
commit edc6695e54
+1 -1
View File
@@ -217,7 +217,7 @@ FIRE ALARM
/obj/machinery/firealarm/take_damage(damage_amount, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, attack_dir)
. = ..()
if(.) //damage received
if(obj_integrity > 0 && !(stat & BROKEN) && buildstage != 0)
if(obj_integrity > 0 && !(stat & BROKEN) && buildstage != 0 && !emagged)
if(prob(33))
alarm()