mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Checks for emagged on firealarms to properly disable them from activating unless pulled manually. (#26170)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user