Core/Battleground: Dropped battleground texts from trinity_string and replaced them with proper BroadcastText
This commit is contained in:
1 parent
615a997035
commit
8365119235
24 files changed
+351
-470
No files matched your search
@@ -24,6 +24,7 @@
|
||||
#include "Battleground.h"
|
||||
#include "BattlegroundScore.h"
|
||||
#include "CellImpl.h"
|
||||
#include "Chat.h"
|
||||
#include "ChatTextBuilder.h"
|
||||
#include "ConditionMgr.h"
|
||||
#include "CreatureAI.h"
|
||||
@@ -14512,11 +14513,11 @@ void Unit::Talk(uint32 textId, ChatMsg msgType, float textRange, WorldObject con
|
||||
{
|
||||
if (!sObjectMgr->GetBroadcastText(textId))
|
||||
{
|
||||
TC_LOG_ERROR("entities.unit", "WorldObject::MonsterText: `broadcast_text` was not %u found", textId);
|
||||
TC_LOG_ERROR("entities.unit", "WorldObject::MonsterText: `broadcast_text` (ID: %u) was not found", textId);
|
||||
return;
|
||||
}
|
||||
|
||||
Trinity::BroadcastTextBuilder builder(this, msgType, textId, target);
|
||||
Trinity::BroadcastTextBuilder builder(this, msgType, textId, getGender(), target);
|
||||
Trinity::LocalizedPacketDo<Trinity::BroadcastTextBuilder> localizer(builder);
|
||||
Trinity::PlayerDistWorker<Trinity::LocalizedPacketDo<Trinity::BroadcastTextBuilder> > worker(this, textRange, localizer);
|
||||
Cell::VisitWorldObjects(this, worker, textRange);
|
||||
|
||||
Reference in new issue
Block a user