From ffd2215f94022f84656aa02fc8dd48cdb17d3111 Mon Sep 17 00:00:00 2001 From: chuga-git <98280110+chuga-git@users.noreply.github.com> Date: Mon, 26 May 2025 18:46:38 -0500 Subject: [PATCH] adds brain null check to /mob/living/carbon/human/handle_critical_condition() (#29457) --- code/modules/mob/living/carbon/human/human_life.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_life.dm b/code/modules/mob/living/carbon/human/human_life.dm index 31ddd6711be..7c524d33edf 100644 --- a/code/modules/mob/living/carbon/human/human_life.dm +++ b/code/modules/mob/living/carbon/human/human_life.dm @@ -625,7 +625,7 @@ var/guaranteed_death_threshold = health + (getOxyLoss() * 0.5) - (getFireLoss() * 0.67) - (getBruteLoss() * 0.67) var/obj/item/organ/internal/brain = get_int_organ(/obj/item/organ/internal/brain) - if(brain?.damage >= brain.max_damage || (guaranteed_death_threshold) <= -500) + if(brain?.damage >= brain?.max_damage || guaranteed_death_threshold <= -500) death() return