From c852b080c9fa4e48095d4cdd2b4bc5b26891d575 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Tue, 28 Mar 2017 19:13:33 -0400 Subject: [PATCH] Makes medibots FAKEDEATH unaware (#25554) --- code/modules/mob/living/simple_animal/bot/medbot.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm index 0f6c3a76d83..bed161ad9db 100644 --- a/code/modules/mob/living/simple_animal/bot/medbot.dm +++ b/code/modules/mob/living/simple_animal/bot/medbot.dm @@ -338,7 +338,7 @@ /mob/living/simple_animal/bot/medbot/proc/assess_patient(mob/living/carbon/C) //Time to see if they need medical help! - if(C.stat == 2) + if(C.stat == DEAD || (C.status_flags & FAKEDEATH)) return 0 //welp too late for them! if(C.suiciding) @@ -404,7 +404,7 @@ soft_reset() return - if(C.stat == 2) + if(C.stat == DEAD || (C.status_flags & FAKEDEATH)) var/list/messagevoice = list("No! Stay with me!" = 'sound/voice/mno.ogg',"Live, damnit! LIVE!" = 'sound/voice/mlive.ogg',"I...I've never lost a patient before. Not today, I mean." = 'sound/voice/mlost.ogg') var/message = pick(messagevoice) speak(message)