refactor(Core/Chat): Move SendNotification to ChatHander (#19491)
* refactor(Core/Chat): Move SendNotification to ChatHander * Update Battleground.cpp * fix build * Update src/server/game/Chat/Chat.h
This commit is contained in:
parent
ebc6218275
commit
e4df159f5c
21 changed files with 96 additions and 75 deletions
|
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
|
||||
#include "InstanceScript.h"
|
||||
#include "Chat.h"
|
||||
#include "Creature.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "GameObject.h"
|
||||
|
|
@ -602,7 +603,7 @@ void InstanceScript::DoSendNotifyToInstance(char const* format, ...)
|
|||
|
||||
instance->DoForAllPlayers([&, buff](Player* player)
|
||||
{
|
||||
player->GetSession()->SendNotification("%s", buff);
|
||||
ChatHandler(player->GetSession()).SendNotification("{}", buff);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue