From a0624c4c4d1fd627ff6015d9907e10b40f49bb7b Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Tue, 25 Jun 2013 22:27:40 -0700 Subject: [PATCH] Fixes pinning without embedding. --- code/modules/mob/living/living_defense.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index 38da7806e0b..3aafe99d06d 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -94,7 +94,7 @@ visible_message("\red [src] staggers under the impact!","\red You stagger under the impact!") src.throw_at(get_edge_target_turf(src,dir),1,momentum) - if(W.w_class >= 3 && W.sharp && armor < 2) //Projectile is suitable, armour is bypassable. + if(istype(W.loc,/mob/living) && W.sharp) //Projectile is embedded and suitable for pinning. var/turf/T = near_wall(dir,2) if(T) src.loc = T