From dcec1b98bd8f5bb7ee2b739641646d9664a2b6fb Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 13 Oct 2021 20:09:44 +0200 Subject: [PATCH] [MIRROR] Syringe injection failure messages now show correct body part [MDB IGNORE] (#8784) * Syringe injection failure messages now show correct body part (#62044) * Makes injection failure message actually display correct body part * Move get_bodypart out of or * Syringe injection failure messages now show correct body part Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com> --- code/modules/mob/living/carbon/human/human.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 9b4f42dd19c..6a0ddf50dd0 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -410,8 +410,7 @@ /mob/living/carbon/human/try_inject(mob/user, target_zone, injection_flags) . = ..() if(!. && (injection_flags & INJECT_TRY_SHOW_ERROR_MESSAGE) && user) - var/obj/item/bodypart/the_part = get_bodypart(target_zone) || get_bodypart(BODY_ZONE_CHEST) - + var/obj/item/bodypart/the_part = get_bodypart(target_zone || user.zone_selected) to_chat(user, span_alert("There is no exposed flesh or thin material on [p_their()] [the_part.name].")) /mob/living/carbon/human/assess_threat(judgement_criteria, lasercolor = "", datum/callback/weaponcheck=null)