fix: ghosts shouldn't see whisper obfuscation (#38202)

This commit is contained in:
Perry Fraser
2025-07-14 03:30:53 -04:00
committed by GitHub
parent 229f33f22a
commit bd853b60de

View File

@@ -535,7 +535,7 @@ public sealed partial class ChatSystem : SharedChatSystem
if (MessageRangeCheck(session, data, range) != MessageRangeCheckResult.Full)
continue; // Won't get logged to chat, and ghosts are too far away to see the pop-up, so we just won't send it to them.
if (data.Range <= WhisperClearRange)
if (data.Range <= WhisperClearRange || data.Observer)
_chatManager.ChatMessageToOne(ChatChannel.Whisper, message, wrappedMessage, source, false, session.Channel);
//If listener is too far, they only hear fragments of the message
else if (_examineSystem.InRangeUnOccluded(source, listener, WhisperMuffledRange))