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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user