From b0d31098d364740019136671a49ae26ed9971171 Mon Sep 17 00:00:00 2001 From: Terragor <81566364+zTerragor@users.noreply.github.com> Date: Thu, 16 Nov 2023 10:02:34 +0500 Subject: [PATCH] [SQL] Implemented rated battlegrounds. [SQL] Implemented rated battlegrounds. --- src/server/game/Battlefield/Zones/BattlefieldWG.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp index 65ee856e2..df838df13 100644 --- a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp +++ b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp @@ -57,7 +57,8 @@ bool BattlefieldWG::SetupBattlefield() InitStalker(BATTLEFIELD_WG_NPC_STALKER, WintergraspStalkerPos[0], WintergraspStalkerPos[1], WintergraspStalkerPos[2], WintergraspStalkerPos[3]); - m_Guid = (MAKE_NEW_GUID(m_TypeId, 0, HIGHGUID_BATTLEGROUND) | 0x20000) + 1; // BATTLEFIELD_TYPE_WORLD_PVP 5.0.5 + m_Guid = MAKE_NEW_GUID(m_TypeId, 0, HIGHGUID_BATTLEGROUND); + m_Guid |= 0x20000; // BATTLEFIELD_TYPE_WORLD_PVP 5.0.5 m_MaxPlayer = sWorld->getIntConfig(CONFIG_WINTERGRASP_PLR_MAX); m_IsEnabled = sWorld->getBoolConfig(CONFIG_WINTERGRASP_ENABLE);