diff options
author | Gooyeth <migmadmu@hotmail.com> | 2018-04-09 08:53:41 -0600 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2018-04-09 16:53:41 +0200 |
commit | 3cd7851cd95d0cc9e7494c96fe52b78442c521ee (patch) | |
tree | 5a3e0ea7e120e4bdb836b1659b3b370df7965878 | |
parent | 71a4f68d66f95c018ceb1c5fe80755fc4ab43be9 (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.cpp | 2 |
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 |