From 73928eb9c001d2da72e1f9e681053a15b6f4e2b5 Mon Sep 17 00:00:00 2001 From: AnturK Date: Wed, 21 Feb 2018 18:40:40 +0100 Subject: [PATCH 1/2] Fixes patches runtime when applying to missing limbs. (#35845) * Fixes patches runtime when applying to missing limbs. * Some feedback. --- code/modules/reagents/reagent_containers/patch.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/reagents/reagent_containers/patch.dm b/code/modules/reagents/reagent_containers/patch.dm index 9321595a8d..ac064c9c15 100644 --- a/code/modules/reagents/reagent_containers/patch.dm +++ b/code/modules/reagents/reagent_containers/patch.dm @@ -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, "The limb is missing!") + return if(affecting.status != BODYPART_ORGANIC) to_chat(user, "Medicine won't work on a robotic limb!") return