fixes a pacifism kill through crushing firelocks! (#37511)
* fix! * ORANGES LOOK AWAY * thanks maintainer
This commit is contained in:
committed by
CitadelStationBot
parent
c287c3a84c
commit
814dc3f811
@@ -142,6 +142,14 @@
|
||||
if(density)
|
||||
open()
|
||||
else
|
||||
if(iscarbon(user))
|
||||
var/mob/living/carbon/C = user
|
||||
if(C.has_trait(TRAIT_PACIFISM))
|
||||
var/T = get_turf(src)
|
||||
for(var/mob/living/L in T)
|
||||
if((L.stat != DEAD) && !L.has_trait(TRAIT_FAKEDEATH))
|
||||
to_chat(user, "<span class='notice'>Closing [src] would hurt [L]!</span>")
|
||||
return
|
||||
close()
|
||||
|
||||
/obj/machinery/door/firedoor/interact(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user