fixes a pacifism kill through crushing firelocks! (#37511)

* fix!

* ORANGES LOOK AWAY

* thanks maintainer
This commit is contained in:
Armhulen
2018-04-29 08:10:59 -07:00
committed by CitadelStationBot
parent c287c3a84c
commit 814dc3f811
+8
View File
@@ -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)