Merge pull request #1197 from ArchieBeepBoop/spamtest

Ports: Fixes simple mob emote spam
This commit is contained in:
QuoteFox
2021-05-24 05:06:40 +01:00
committed by GitHub
+1 -1
View File
@@ -64,7 +64,7 @@
if(!M.client || isnewplayer(M))
continue
var/T = get_turf(user)
if(M.stat == DEAD && M.client && (M.client.prefs.chat_toggles & CHAT_GHOSTSIGHT) && !(M in viewers(T, null)))
if(M.stat == DEAD && M.client && (M.client.prefs.chat_toggles & CHAT_GHOSTSIGHT) && !(M in viewers(T, null)) && (user.client)) //SKYRAT CHANGE - only user controlled mobs show their emotes to all-seeing ghosts, to reduce chat spam
M.show_message(msg)
if(emote_type == EMOTE_AUDIBLE)