feat(Core/SpellMgr): Worldserver option for ICC buff (#2320)

This commit is contained in:
Stoabrogga
2019-10-16 07:53:19 +02:00
committed by GitHub
parent 626a54be9e
commit 3baa3c7534
6 changed files with 63 additions and 1 deletions

View File

@@ -1328,7 +1328,11 @@ void World::LoadConfigSettings(bool reload)
m_int_configs[CONFIG_AFK_PREVENT_LOGOUT] = sConfigMgr->GetIntDefault("PreventAFKLogout", 0);
// Preload all grids of all non-instanced maps
m_bool_configs[CONFIG_PRELOAD_ALL_NON_INSTANCED_MAP_GRIDS] = sConfigMgr->GetIntDefault("PreloadAllNonInstancedMapGrids", false);
m_bool_configs[CONFIG_PRELOAD_ALL_NON_INSTANCED_MAP_GRIDS] = sConfigMgr->GetBoolDefault("PreloadAllNonInstancedMapGrids", false);
// ICC buff override
m_int_configs[CONFIG_ICC_BUFF_HORDE] = sConfigMgr->GetIntDefault("ICC.Buff.Horde", 73822);
m_int_configs[CONFIG_ICC_BUFF_ALLIANCE] = sConfigMgr->GetIntDefault("ICC.Buff.Alliance", 73828);
// call ScriptMgr if we're reloading the configuration
sScriptMgr->OnAfterConfigLoad(reload);

View File

@@ -342,6 +342,8 @@ enum WorldIntConfigs
CONFIG_SOCKET_TIMEOUTTIME_ACTIVE,
CONFIG_INSTANT_TAXI,
CONFIG_AFK_PREVENT_LOGOUT,
CONFIG_ICC_BUFF_HORDE,
CONFIG_ICC_BUFF_ALLIANCE,
INT_CONFIG_VALUE_COUNT
};