Fixes patches runtime when applying to missing limbs. (#35845)

* Fixes patches runtime when applying to missing limbs.

* Some feedback.
This commit is contained in:
AnturK
2018-02-21 18:40:40 +01:00
committed by CitadelStationBot
parent c1d66af3a1
commit 73928eb9c0
@@ -16,6 +16,9 @@
/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(!affecting)
to_chat(user, "<span class='warning'>The limb is missing!</span>")
return
if(affecting.status != BODYPART_ORGANIC)
to_chat(user, "<span class='notice'>Medicine won't work on a robotic limb!</span>")
return