Readds check for sharp && !ismob(W.loc)

This commit is contained in:
mwerezak
2014-07-13 06:13:54 -04:00
committed by ZomgPonies
parent 3bf0011405
commit 119106488b
@@ -318,7 +318,7 @@ This function restores all organs.
var/embed_threshold = sharp? 5*W.w_class : 15*W.w_class
//Sharp objects will always embed if they do enough damage.
if((sharp && damage > (10*W.w_class)) || (damage > embed_threshold && prob(embed_chance)))
if((sharp && damage > (10*W.w_class)) || (sharp && !ismob(W.loc)) || (damage > embed_threshold && prob(embed_chance)))
organ.embed(W)
return 1