refactor(Core/DB/playercreateinfo_spell_custom): Load empty (#10595)

This commit is contained in:
Kitzunu
2022-02-14 20:21:56 +01:00
committed by GitHub
parent a4ecea2ae4
commit 3501ceb710
5 changed files with 7 additions and 475 deletions

View File

@@ -11491,7 +11491,7 @@ void Player::resetSpells()
void Player::LearnCustomSpells()
{
if (!sWorld->getBoolConfig(CONFIG_START_ALL_SPELLS))
if (!sWorld->getBoolConfig(CONFIG_START_CUSTOM_SPELLS))
{
return;
}

View File

@@ -126,7 +126,7 @@ enum WorldBoolConfigs
CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN,
CONFIG_VMAP_INDOOR_CHECK,
CONFIG_PET_LOS,
CONFIG_START_ALL_SPELLS,
CONFIG_START_CUSTOM_SPELLS,
CONFIG_START_ALL_EXPLORED,
CONFIG_START_ALL_REP,
CONFIG_ALWAYS_MAXSKILL,

View File

@@ -1294,7 +1294,7 @@ void World::LoadConfigSettings(bool reload)
LOG_INFO("server.loading", "WORLD: VMap support included. LineOfSight:{}, getHeight:{}, indoorCheck:{} PetLOS:{}", enableLOS, enableHeight, enableIndoor, enablePetLOS);
m_bool_configs[CONFIG_PET_LOS] = sConfigMgr->GetOption<bool>("vmap.petLOS", true);
m_bool_configs[CONFIG_START_ALL_SPELLS] = sConfigMgr->GetOption<bool>("PlayerStart.AllSpells", false);
m_bool_configs[CONFIG_START_CUSTOM_SPELLS] = sConfigMgr->GetOption<bool>("PlayerStart.CustomSpells", false);
m_int_configs[CONFIG_HONOR_AFTER_DUEL] = sConfigMgr->GetOption<int32>("HonorPointsAfterDuel", 0);
m_bool_configs[CONFIG_START_ALL_EXPLORED] = sConfigMgr->GetOption<bool>("PlayerStart.MapsExplored", false);
m_bool_configs[CONFIG_START_ALL_REP] = sConfigMgr->GetOption<bool>("PlayerStart.AllReputation", false);