Core/Arena: Do not distribute points if the season is not in progress (#21600)

This commit is contained in:
Gooyeth
2018-03-12 15:41:11 -06:00
committed by Shauren
parent 6414e456ec
commit e2ae302e2c

View File

@@ -628,7 +628,7 @@ void BattlegroundMgr::LoadBattlegroundTemplates()
void BattlegroundMgr::InitAutomaticArenaPointDistribution()
{
if (!sWorld->getBoolConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS))
if (!sWorld->getBoolConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS) || !sWorld->getBoolConfig(CONFIG_ARENA_SEASON_IN_PROGRESS))
return;
time_t wstime = time_t(sWorld->getWorldState(WS_ARENA_DISTRIBUTION_TIME));