mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Prevent speech duplicating through zshadow mobs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user