diff --git a/src/game/OutdoorPvP/OutdoorPvPEP.cpp b/src/game/OutdoorPvP/OutdoorPvPEP.cpp index b6ce39a445..09121265cd 100644 --- a/src/game/OutdoorPvP/OutdoorPvPEP.cpp +++ b/src/game/OutdoorPvP/OutdoorPvPEP.cpp @@ -43,11 +43,14 @@ OutdoorPvPEP::OutdoorPvPEP() : OutdoorPvP(), void OutdoorPvPEP::FillInitialWorldStates(WorldPacket& data, uint32& count) { - FillInitialWorldState(data, count, WORLD_STATE_EP_TOWER_COUNT_ALLIANCE, m_towersAlliance); - FillInitialWorldState(data, count, WORLD_STATE_EP_TOWER_COUNT_HORDE, m_towersHorde); + if (sWorld.getConfig(CONFIG_BOOL_OUTDOORPVP_EP_ENABLED)) + { + FillInitialWorldState(data, count, WORLD_STATE_EP_TOWER_COUNT_ALLIANCE, m_towersAlliance); + FillInitialWorldState(data, count, WORLD_STATE_EP_TOWER_COUNT_HORDE, m_towersHorde); - for (unsigned int i : m_towerWorldState) - FillInitialWorldState(data, count, i, WORLD_STATE_ADD); + for (unsigned int i : m_towerWorldState) + FillInitialWorldState(data, count, i, WORLD_STATE_ADD); + } } void OutdoorPvPEP::SendRemoveWorldStates(Player* player) diff --git a/src/game/OutdoorPvP/OutdoorPvPSI.cpp b/src/game/OutdoorPvP/OutdoorPvPSI.cpp index 505e4e1327..83a7cbc2d4 100644 --- a/src/game/OutdoorPvP/OutdoorPvPSI.cpp +++ b/src/game/OutdoorPvP/OutdoorPvPSI.cpp @@ -36,9 +36,12 @@ OutdoorPvPSI::OutdoorPvPSI() : OutdoorPvP(), // Send initial world states void OutdoorPvPSI::FillInitialWorldStates(WorldPacket& data, uint32& count) { - FillInitialWorldState(data, count, WORLD_STATE_SI_GATHERED_A, m_resourcesAlliance); - FillInitialWorldState(data, count, WORLD_STATE_SI_GATHERED_H, m_resourcesHorde); - FillInitialWorldState(data, count, WORLD_STATE_SI_SILITHYST_MAX, MAX_SILITHYST); + if (sWorld.getConfig(CONFIG_BOOL_OUTDOORPVP_SI_ENABLED)) + { + FillInitialWorldState(data, count, WORLD_STATE_SI_GATHERED_A, m_resourcesAlliance); + FillInitialWorldState(data, count, WORLD_STATE_SI_GATHERED_H, m_resourcesHorde); + FillInitialWorldState(data, count, WORLD_STATE_SI_SILITHYST_MAX, MAX_SILITHYST); + } } // Handle buffs when player enters the zone