From a652f5798523c4e886cec73625327f53a5c0bf63 Mon Sep 17 00:00:00 2001 From: 1080pCat <96908085+1080pCat@users.noreply.github.com> Date: Wed, 25 Dec 2024 07:38:08 +1000 Subject: [PATCH] Fixes oxygen related alerts sticking in your hud if you loose the need to breath (#27731) * Fixes oxygen related alerts sticking if you loose the ability to breath * random runtime? * random runtime i guess? * Update code/modules/mob/living/carbon/human/species/_species.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> --------- Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- code/modules/mob/living/carbon/human/species/_species.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/species/_species.dm b/code/modules/mob/living/carbon/human/species/_species.dm index 4925c604c402..3e8ebcb21d87 100644 --- a/code/modules/mob/living/carbon/human/species/_species.dm +++ b/code/modules/mob/living/carbon/human/species/_species.dm @@ -269,7 +269,9 @@ new mutantears(H) /datum/species/proc/breathe(mob/living/carbon/human/H) - if(HAS_TRAIT(H, TRAIT_NOBREATH)) + var/datum/organ/lungs/lung = H.get_int_organ_datum(ORGAN_DATUM_LUNGS) + if(HAS_TRAIT(H, TRAIT_NOBREATH) && lung) + lung.clear_alerts(H) return TRUE ////////////////