This commit is contained in:
Kelenius
2015-07-15 16:34:05 +03:00
parent 03927918c6
commit 3de25ceb00

View File

@@ -78,6 +78,10 @@
var/obj/item/weapon/grab/G = W var/obj/item/weapon/grab/G = W
if (istype(G.affecting, /mob/living)) if (istype(G.affecting, /mob/living))
var/mob/living/M = G.affecting var/mob/living/M = G.affecting
var/obj/occupied = turf_is_crowded()
if(occupied)
user << "<span class='danger'>There's \a [occupied] in the way.</span>"
return
if (G.state < 2) if (G.state < 2)
if(user.a_intent == I_HURT) if(user.a_intent == I_HURT)
if (prob(15)) M.Weaken(5) if (prob(15)) M.Weaken(5)