mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Adds NO_BREATH check before calling lungs check_breath (#41526)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user