Prevent speech duplicating through zshadow mobs

This commit is contained in:
Leshana
2017-05-18 19:30:54 -04:00
parent acc1e9a0ba
commit 48eb4a0a49

View File

@@ -35,6 +35,8 @@
// Relay some stuff they hear
/mob/zshadow/hear_say(var/message, var/verb = "says", var/datum/language/language = null, var/alt_name = "", var/italics = 0, var/mob/speaker = null, var/sound/speech_sound, var/sound_vol)
if(speaker && speaker.z != src.z)
return // Only relay speech on our acutal z, otherwise we might relay sounds that were themselves relayed up!
if(isliving(owner))
verb += " from above"
return owner.hear_say(message, verb, language, alt_name, italics, speaker, speech_sound, sound_vol)