diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-04-18 23:58:18 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2025-05-11 11:39:34 +0200 |
| commit | de2d7a8bfd53784e967b1d8f9436a09b26ca4b45 (patch) | |
| tree | f9910a7e081c33bb0030b4a5ed2f94c8247fdf1e /src/server/game/Spells/SpellMgr.cpp | |
| parent | 75ec470530be77b2cd9832a8b255fcb9768c5f9b (diff) | |
Core/DataStores: Convert SkillLineAbilityAcquireMethod to enum class
(cherry picked from commit 531afa6bcc485db7c115e5ab5d874bda2cbf642e)
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 08c66eeffee..93bb74ce7fe 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -2302,7 +2302,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); @@ -4950,7 +4950,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); |
