Fixed Obfuscated messages for ghosts (#6133)

This commit is contained in:
Michael Phillips
2022-01-11 15:51:49 -08:00
committed by GitHub
parent e00c39230c
commit ffa19077b7

View File

@@ -244,7 +244,8 @@ namespace Content.Server.Chat.Managers
var transformEntity = _entManager.GetComponent<TransformComponent>(playerEntity);
if (sourceCoords.InRange(_entManager, transformEntity.Coordinates, WhisperRange))
if (sourceCoords.InRange(_entManager, transformEntity.Coordinates, WhisperRange) ||
_entManager.HasComponent<GhostComponent>(playerEntity))
{
NetMessageToOne(ChatChannel.Whisper, message, messageWrap, source, hideChat, session.ConnectedClient);
}