stops patches from applying magically through suits

This commit is contained in:
Poojawa
2018-10-13 04:45:48 -05:00
parent 29d62bc2a8
commit 6268e2f143

View File

@@ -14,6 +14,8 @@
/obj/item/reagent_containers/pill/patch/attack(mob/living/L, mob/user)
if(ishuman(L))
var/obj/item/bodypart/affecting = L.get_bodypart(check_zone(user.zone_selected))
if(!L.can_inject(user, 1))
return
if(!affecting)
to_chat(user, "<span class='warning'>The limb is missing!</span>")
return