From 3f8f44ff4ca7f4565a94ed2ab92965553c0bc803 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Fri, 5 Jan 2018 04:22:01 -0500 Subject: [PATCH] medbot tweak --- code/modules/mob/living/simple_animal/bot/medbot.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm index 03dbc240ec4..d9c75108440 100644 --- a/code/modules/mob/living/simple_animal/bot/medbot.dm +++ b/code/modules/mob/living/simple_animal/bot/medbot.dm @@ -350,6 +350,11 @@ if(C.suiciding) return FALSE //Kevorkian school of robotic medical assistants. + if(ishuman(C)) + var/mob/living/carbon/human/H = C + if((H.head && (H.head.flags_1 & THICKMATERIAL_1)) && (H.wear_suit && (H.wear_suit.flags_1 & THICKMATERIAL_1))) + return FALSE // Skip over them if they have no exposed flesh. + if(emagged == 2) //Everyone needs our medicine. (Our medicine is toxins) return TRUE @@ -479,7 +484,7 @@ C.visible_message("[src] is trying to inject [patient]!", \ "[src] is trying to inject you!") - var/failed = FALSE; + var/failed = FALSE if(do_mob(src, patient, 30)) //Is C == patient? This is so confusing if((get_dist(src, patient) <= 1) && (on) && assess_patient(patient)) if(reagent_id == "internal_beaker")