From 1c17a34752e82f60c9b3f2e5f0c8a46d271cbda0 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 12 Oct 2020 23:23:19 +0200 Subject: [PATCH] [MIRROR] Fixes permanent stamina crit while in stasis (#1271) * Fixes permanent stamina crit while in stasis (#54319) * Fixes permanent stamina crit while in stasis Co-authored-by: Rohesie --- code/modules/mob/living/carbon/life.dm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm index 38aa4e331fc..29548f212b0 100644 --- a/code/modules/mob/living/carbon/life.dm +++ b/code/modules/mob/living/carbon/life.dm @@ -20,12 +20,6 @@ if(.) //not dead handle_blood() - if(stat != DEAD) - var/bprv = handle_bodyparts() - if(bprv & BODYPART_LIFE_UPDATE_HEALTH) - update_stamina() //needs to go before updatehealth to remove stamcrit - updatehealth() - if(stat != DEAD) handle_brain_damage() @@ -35,6 +29,11 @@ if(stat == DEAD) stop_sound_channel(CHANNEL_HEARTBEAT) LoadComponent(/datum/component/rot/corpse) + else + var/bprv = handle_bodyparts() + if(bprv & BODYPART_LIFE_UPDATE_HEALTH) + update_stamina() //needs to go before updatehealth to remove stamcrit + updatehealth() check_cremation()