From ffa19077b7b71d1dbfe2869380335566cb212b16 Mon Sep 17 00:00:00 2001 From: Michael Phillips <1194692+MeltedPixel@users.noreply.github.com> Date: Tue, 11 Jan 2022 15:51:49 -0800 Subject: [PATCH] Fixed Obfuscated messages for ghosts (#6133) --- Content.Server/Chat/Managers/ChatManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Chat/Managers/ChatManager.cs b/Content.Server/Chat/Managers/ChatManager.cs index a6941c534a..3d3cb8d53e 100644 --- a/Content.Server/Chat/Managers/ChatManager.cs +++ b/Content.Server/Chat/Managers/ChatManager.cs @@ -244,7 +244,8 @@ namespace Content.Server.Chat.Managers var transformEntity = _entManager.GetComponent(playerEntity); - if (sourceCoords.InRange(_entManager, transformEntity.Coordinates, WhisperRange)) + if (sourceCoords.InRange(_entManager, transformEntity.Coordinates, WhisperRange) || + _entManager.HasComponent(playerEntity)) { NetMessageToOne(ChatChannel.Whisper, message, messageWrap, source, hideChat, session.ConnectedClient); }