feat(Core): Config to disable all Wintergrasp processing (#13086)

* feat(Core): Config to disable all Wintergrasp processing

* Use 2 instead of -1 - configs are parsed as uint

* Fix build warnings
This commit is contained in:
ZhengPeiRu21
2022-11-01 03:22:09 -06:00
committed by GitHub
parent 9e89917fd7
commit 5a7822282f
8 changed files with 15 additions and 8 deletions

View File

@@ -1143,7 +1143,7 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32
if (!player)
return false;
if (!sWorld->getBoolConfig(CONFIG_WINTERGRASP_ENABLE))
if (sWorld->getIntConfig(CONFIG_WINTERGRASP_ENABLE) != 1)
return false;
Battlefield* Bf = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG);