Fixes pinning without embedding.

This commit is contained in:
Zuhayr
2013-06-25 22:27:40 -07:00
parent a0aa02b815
commit a0624c4c4d

View File

@@ -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