aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGooyeth <migmadmu@hotmail.com>2018-04-09 08:53:41 -0600
committerjackpoz <giacomopoz@gmail.com>2018-04-09 16:53:41 +0200
commit3cd7851cd95d0cc9e7494c96fe52b78442c521ee (patch)
tree5a3e0ea7e120e4bdb836b1659b3b370df7965878
parent71a4f68d66f95c018ceb1c5fe80755fc4ab43be9 (diff)
Core/Battleground: resolve auto distribution of Arena Points (#21606)
* Core/Battleground: Fix Auto distribution arena points * Oops xD
-rw-r--r--src/server/game/Battlegrounds/BattlegroundMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp
index 45ce0974f2e..fe0ab0c4f2f 100644
--- a/src/server/game/Battlegrounds/BattlegroundMgr.cpp
+++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp
@@ -171,7 +171,7 @@ void BattlegroundMgr::Update(uint32 diff)
if (GameTime::GetGameTime() > m_NextAutoDistributionTime)
{
sArenaTeamMgr->DistributeArenaPoints();
- m_NextAutoDistributionTime = m_NextAutoDistributionTime + BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY * sWorld->getIntConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS);
+ m_NextAutoDistributionTime = sWorld->getWorldState(WS_ARENA_DISTRIBUTION_TIME) + BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY * sWorld->getIntConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS);
sWorld->setWorldState(WS_ARENA_DISTRIBUTION_TIME, uint64(m_NextAutoDistributionTime));
}
m_AutoDistributionTimeChecker = 600000; // check 10 minutes