mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
refactor(Core/DB/playercreateinfo_spell_custom): Load empty (#10595)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -3215,15 +3215,13 @@ ItemDelete.ItemLevel = 80
|
||||
PlayerStart.AllReputation = 0
|
||||
|
||||
#
|
||||
# PlayerStart.AllSpells
|
||||
# Description: If enabled, players will start with all their class spells (not talents).
|
||||
# You must populate playercreateinfo_spell_custom table with the spells you
|
||||
# want, or this will not work! The table has data for all classes / races up
|
||||
# to TBC expansion.
|
||||
# PlayerStart.CustomSpells
|
||||
# Description: If enabled, players will start with custom spells defined in
|
||||
# playercreateinfo_spell_custom table.
|
||||
# Default: 0 - (Disabled)
|
||||
# 1 - (Enabled)
|
||||
|
||||
PlayerStart.AllSpells = 0
|
||||
PlayerStart.CustomSpells = 0
|
||||
|
||||
#
|
||||
# PlayerStart.MapsExplored
|
||||
|
||||
Reference in New Issue
Block a user