From 88b887a8cc6a306bd0bbdf47dade1edab1f01bc0 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 27 Sep 2020 11:30:45 +0200 Subject: [PATCH] [MIRROR] Fixes infinite, (almost) free wound treatment with stacked medical items (#1006) * Fixes infinite, (almost) free wound treatment with stacked medical items (#53973) * Fixes infinite, (almost) free wound treatment with stacked medical items Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> --- code/datums/wounds/_wounds.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/wounds/_wounds.dm b/code/datums/wounds/_wounds.dm index 032ab38152e..8f9d9fa4f47 100644 --- a/code/datums/wounds/_wounds.dm +++ b/code/datums/wounds/_wounds.dm @@ -255,7 +255,7 @@ */ /datum/wound/proc/try_treating(obj/item/I, mob/user) // first we weed out if we're not dealing with our wound's bodypart, or if it might be an attack - if(!I || limb.body_zone != user.zone_selected || (I.force && user.a_intent != INTENT_HELP)) + if(QDELETED(I) || limb.body_zone != user.zone_selected || (I.force && user.a_intent != INTENT_HELP)) return FALSE var/allowed = FALSE