[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>
This commit is contained in:
SkyratBot
2021-10-13 19:09:44 +01:00
committed by GitHub
co-authored by RandomGamer123
parent fc9461ac9e
commit dcec1b98bd
@@ -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)