From da2786891adbf4c24f0f0dac1c854003fc1a59c1 Mon Sep 17 00:00:00 2001 From: Segrain Date: Mon, 29 Jul 2013 08:12:02 +0300 Subject: [PATCH] Fix for #3337. --- code/modules/mob/living/carbon/human/examine.dm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index 95b2e678119..ed033f4d6f5 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -199,19 +199,15 @@ var/distance = get_dist(usr,src) if(istype(usr, /mob/dead/observer) || usr.stat == 2) // ghosts can see anything distance = 1 - if (src.stat == 1 || stat == 2) + if (src.stat) msg += "[t_He] [t_is]n't responding to anything around [t_him] and seems to be asleep.\n" if((stat == 2 || src.health < config.health_threshold_crit) && distance <= 3) msg += "[t_He] does not appear to be breathing.\n" - if(istype(usr, /mob/living/carbon/human) && usr.stat == 0 && src.stat == 1 && distance <= 1) + if(istype(usr, /mob/living/carbon/human) && !usr.stat && distance <= 1) for(var/mob/O in viewers(usr.loc, null)) O.show_message("[usr] checks [src]'s pulse.", 1) - spawn(15) - usr << "\blue [t_He] has a pulse!" - - if(distance <= 1) - if(istype(usr, /mob/living/carbon/human) && usr.stat == 0) - spawn(15) + spawn(15) + if(distance <= 1 && usr.stat != 1) if(pulse == PULSE_NONE) usr << "[t_He] has no pulse[src.client ? "" : " and [t_his] soul has departed"]..." else