[MIRROR] Clears up issues moods and alerts on gain of NOBREATH (#968)

* Clears up issues moods and alerts on gain of NOBREATH (#53908)

Fixes up the gain of the NOBREATH trait to clear breath related moods and alerts.
Added a godmode fix up for humans also.

* Clears up issues moods and alerts on gain of NOBREATH

Co-authored-by: NightRed <nightred@gmail.com>
This commit is contained in:
SkyratBot
2020-09-24 20:34:00 +02:00
committed by GitHub
parent 77c53c4258
commit dcc063700f
4 changed files with 28 additions and 2 deletions
+2
View File
@@ -76,6 +76,8 @@
/obj/item/organ/lungs/proc/check_breath(datum/gas_mixture/breath, mob/living/carbon/human/H)
if(H.status_flags & GODMODE)
H.failed_last_breath = FALSE //clear oxy issues
H.clear_alert("not_enough_oxy")
return
if(HAS_TRAIT(H, TRAIT_NOBREATH))
return