Core: Update to 10.2.0
Port From (https://github.com/TrinityCore/TrinityCore/commit/1eea1d11b14d2ae065ab0f1888fba3b1ef03874f)
This commit is contained in:
@@ -1899,9 +1899,13 @@ namespace Game
|
||||
|
||||
public void SendServerMessage(ServerMessageType messageID, string stringParam = "", Player player = null)
|
||||
{
|
||||
ServerMessagesRecord serverMessage = CliDB.ServerMessagesStorage.LookupByKey(messageID);
|
||||
if (serverMessage == null)
|
||||
return;
|
||||
|
||||
ChatServerMessage packet = new();
|
||||
packet.MessageID = (int)messageID;
|
||||
if (messageID <= ServerMessageType.String)
|
||||
if (serverMessage.Text[player != null ? player.GetSession().GetSessionDbcLocale() : GetDefaultDbcLocale()].Contains("%s"))
|
||||
packet.StringParam = stringParam;
|
||||
|
||||
if (player != null)
|
||||
|
||||
Reference in New Issue
Block a user