aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-04-18 23:58:18 +0200
committerShauren <shauren.trinity@gmail.com>2025-04-18 23:58:18 +0200
commit531afa6bcc485db7c115e5ab5d874bda2cbf642e (patch)
treeb3ee4a4e6d96fe6569f746dcd8a3032b75c01d90 /src/server/game/Spells
parenta5108d262616e267f549b18eb72ab7245af6bece (diff)
Core/DataStores: Convert SkillLineAbilityAcquireMethod to enum class
Diffstat (limited to 'src/server/game/Spells')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 855b9d00194..d82e5f7b3c7 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -2178,7 +2178,7 @@ void SpellMgr::LoadPetLevelupSpellMap()
for (SkillLineAbilityEntry const* skillLine : *skillLineAbilities)
{
- if (skillLine->AcquireMethod != SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN)
+ if (skillLine->GetAcquireMethod() != SkillLineAbilityAcquireMethod::AutomaticCharLevel)
continue;
SpellInfo const* spell = GetSpellInfo(skillLine->Spell, DIFFICULTY_NONE);
@@ -5352,7 +5352,7 @@ void SpellMgr::LoadPetFamilySpellsStore()
if (skillLine->SkillLine != cFamily->SkillLine[0] && skillLine->SkillLine != cFamily->SkillLine[1])
continue;
- if (skillLine->AcquireMethod != SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN)
+ if (skillLine->GetAcquireMethod() != SkillLineAbilityAcquireMethod::AutomaticCharLevel)
continue;
sPetFamilySpellsStore[cFamily->ID].insert(spellInfo->Id);