Adds NO_BREATH check before calling lungs check_breath (#41526)

This commit is contained in:
nicbn
2018-11-16 07:25:20 -05:00
committed by Emmett Gaines
parent 981825b075
commit fdc3cdfa8e
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -121,7 +121,9 @@
//Third link in a breath chain, calls handle_breath_temperature()
/mob/living/carbon/proc/check_breath(datum/gas_mixture/breath)
if((status_flags & GODMODE))
if(status_flags & GODMODE)
return
if(has_trait(TRAIT_NOBREATH))
return
var/lungs = getorganslot(ORGAN_SLOT_LUNGS)
+1 -1
View File
@@ -56,7 +56,7 @@
/obj/item/organ/lungs/proc/check_breath(datum/gas_mixture/breath, mob/living/carbon/human/H)
if((H.status_flags & GODMODE))
if(H.status_flags & GODMODE)
return
if(H.has_trait(TRAIT_NOBREATH))
return