mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
fixes a runtime caused by a custom emote and makes IsVocal() false for people with the mute trait (#18271)
* why are they silent * bam fixed * oops remove those testing things
This commit is contained in:
@@ -97,6 +97,8 @@
|
||||
// how do species that don't breathe talk? magic, that's what.
|
||||
var/breathes = (!HAS_TRAIT(src, TRAIT_NOBREATH))
|
||||
var/obj/item/organ/internal/L = get_organ_slot("lungs")
|
||||
if(HAS_TRAIT(src, TRAIT_MUTE))
|
||||
return FALSE
|
||||
if((breathes && !L) || breathes && L && (L.status & ORGAN_DEAD))
|
||||
return FALSE
|
||||
if(getOxyLoss() > 10 || AmountLoseBreath() >= 8 SECONDS)
|
||||
|
||||
Reference in New Issue
Block a user