Don't step on glass (#7223)

This commit is contained in:
Alffd
2017-05-06 17:58:32 -04:00
committed by Crazy Lemon
parent 71dab4acc7
commit a662a48794
+1 -1
View File
@@ -71,7 +71,7 @@
/obj/item/weapon/shard/Crossed(AM as mob|obj)
if(isliving(AM))
var/mob/living/M = AM
if(M.incorporeal_move || M.flying)//you are incorporal or flying..no shard stepping!
if(M.incorporeal_move || M.flying || M.throwing)//you are incorporal or flying or being thrown ..no shard stepping!
return
to_chat(M, "<span class='danger'>You step on \the [src]!</span>")
playsound(src.loc, 'sound/effects/glass_step.ogg', 50, 1) // not sure how to handle metal shards with sounds