Core/Chat: Apply chat translation also to messeges sent to self

Port From (https://github.com/TrinityCore/TrinityCore/commit/ede3e415ab4dab39d2f88f588a7f0f79d6c4187b)
This commit is contained in:
hondacrx
2021-05-03 21:53:54 -04:00
parent d4c8f36846
commit 89633000d1
+3 -3
View File
@@ -6233,13 +6233,13 @@ namespace Game.Entities
void SendChatMessageToSetInRange(ChatMsg chatMsg, Language language, string text, float range)
{
ChatPacketSender customizer = new(chatMsg, language, this, this, text);
ChatPacketSender sender = new(chatMsg, language, this, this, text);
// Send to self
SendPacket(customizer.UntranslatedPacket);
sender.Invoke(this);
// Send to players
MessageDistDeliverer<ChatPacketSender> notifier = new(this, customizer, range);
MessageDistDeliverer<ChatPacketSender> notifier = new(this, sender, range);
Cell.VisitWorldObjects(this, notifier, range);
}