Fix runtime with borgs deathgasping (#18109)

* Fix runtime with borgs deathgasping

* farie's wonderful suggestion

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
moxian
2022-06-27 14:25:50 +02:00
committed by GitHub
co-authored by Farie82
parent faf173b35c
commit da2120f60d
+2
View File
@@ -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))