POLARIS: Fixes #2573 (VS) - Slap cigarettes off people's faces

This commit is contained in:
Arokha Sieyes
2018-03-25 17:05:34 -04:00
parent 29eb468ef5
commit a3fb959d98
@@ -644,6 +644,10 @@
if(M)
message = "<span class='danger'>slaps [M] across the face. Ouch!</span>"
playsound(loc, 'sound/effects/snap.ogg', 50, 1)
if(ishuman(M)) //Snowflakey!
var/mob/living/carbon/human/H = M
if(istype(H.wear_mask,/obj/item/clothing/mask/smokable))
H.drop_from_inventory(H.wear_mask)
else
message = "<span class='danger'>slaps [T.himself]!</span>"
playsound(loc, 'sound/effects/snap.ogg', 50, 1)