feat(Core/Wintergrasp): toggle for VoA pre-battle kick (#25942)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-05-24 09:34:08 -03:00
committed by GitHub
parent e0046d8ba8
commit f6bbbcc67f
4 changed files with 21 additions and 0 deletions
@@ -22,6 +22,7 @@
#include "Player.h"
#include "ScriptedCreature.h"
#include "SpellAuras.h"
#include "World.h"
#include "vault_of_archavon.h"
/* Vault of Archavon encounters:
@@ -73,6 +74,8 @@ public:
if (checkTimer >= 60000)
{
checkTimer -= 60000; // one minute
if (!sWorld->getBoolConfig(CONFIG_WINTERGRASP_KICK_VOA_PLAYERS))
return;
if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG))
{
if (!bf->IsWarTime())
@@ -133,6 +136,9 @@ public:
if (m_auiEncounter[i] == IN_PROGRESS)
return true;
if (!sWorld->getBoolConfig(CONFIG_WINTERGRASP_KICK_VOA_PLAYERS))
return false;
Battlefield* bf = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG);
if (!bf || bf->IsWarTime() || bf->GetTimer() <= 10 * MINUTE * IN_MILLISECONDS)
return true;