feat(Core/Battlegrounds): Add PvP announce opt-out flags (#25957)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -675,7 +675,7 @@ inline void Battleground::_ProcessJoin(uint32 diff)
|
||||
|
||||
// Announce BG starting
|
||||
if (sWorld->getBoolConfig(CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_ENABLE))
|
||||
ChatHandler(nullptr).SendWorldText(LANG_BG_STARTED_ANNOUNCE_WORLD, GetName(), std::min(GetMinLevel(), (uint32)80), std::min(GetMaxLevel(), (uint32)80));
|
||||
ChatHandler(nullptr).SendWorldTextOptional(LANG_BG_STARTED_ANNOUNCE_WORLD, ANNOUNCER_FLAG_DISABLE_PVP_START, GetName(), std::min(GetMinLevel(), (uint32)80), std::min(GetMaxLevel(), (uint32)80));
|
||||
|
||||
sScriptMgr->OnBattlegroundStart(this);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,11 @@ enum AnnouncerFlags : uint8
|
||||
{
|
||||
ANNOUNCER_FLAG_DISABLE_BG_QUEUE = 1,
|
||||
ANNOUNCER_FLAG_DISABLE_ARENA_QUEUE = 2,
|
||||
ANNOUNCER_FLAG_DISABLE_AUTOBROADCAST = 4
|
||||
ANNOUNCER_FLAG_DISABLE_AUTOBROADCAST = 4,
|
||||
ANNOUNCER_FLAG_DISABLE_PVP_START = 8,
|
||||
ANNOUNCER_FLAG_DISABLE_PVP_ALL = ANNOUNCER_FLAG_DISABLE_BG_QUEUE
|
||||
| ANNOUNCER_FLAG_DISABLE_ARENA_QUEUE
|
||||
| ANNOUNCER_FLAG_DISABLE_PVP_START
|
||||
};
|
||||
|
||||
struct PlayerSetting
|
||||
|
||||
Reference in New Issue
Block a user