From da2120f60df8cac4cc70483b3a41aedb6910f431 Mon Sep 17 00:00:00 2001 From: moxian Date: Mon, 27 Jun 2022 12:25:50 +0000 Subject: [PATCH] Fix runtime with borgs deathgasping (#18109) * Fix runtime with borgs deathgasping * farie's wonderful suggestion Co-authored-by: Farie82 Co-authored-by: Farie82 --- code/modules/mob/living/living_emote.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/living_emote.dm b/code/modules/mob/living/living_emote.dm index baaf8c074df..67e72854045 100644 --- a/code/modules/mob/living/living_emote.dm +++ b/code/modules/mob/living/living_emote.dm @@ -112,6 +112,8 @@ /datum/emote/living/deathgasp/play_sound_effect(mob/user, intentional, sound_path, sound_volume) var/mob/living/carbon/human/H = user + if(!istype(H)) + return ..() // special handling here: we don't want monkeys' gasps to sound through walls so you can actually walk past xenobio playsound(user.loc, sound_path, sound_volume, TRUE, frequency = H.get_age_pitch(), ignore_walls = !isnull(user.mind))