diff options
author | fluxurion <zoltan@fatalerror.hu> | 2023-01-09 21:04:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 21:04:28 +0100 |
commit | d90b526c28cf3b33e52d3ce432cdade1ce5e050e (patch) | |
tree | 9e3b5616037a6ed34affdb76e66ea869c6be4b23 | |
parent | 397d77511811312daaa6ce35f6a6512b41046f6b (diff) |
Core/Spells: Update IsPrimaryProfessionSkill filtering (#28650)
-rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index bd40e1bbe04..3ead1a0196a 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -104,7 +104,7 @@ PetFamilySpellsStore sPetFamilySpellsStore; bool IsPrimaryProfessionSkill(uint32 skill) { SkillLineEntry const* pSkill = sSkillLineStore.LookupEntry(skill); - return pSkill && pSkill->CategoryID == SKILL_CATEGORY_PROFESSION; + return pSkill && pSkill->CategoryID == SKILL_CATEGORY_PROFESSION && !pSkill->ParentSkillLineID; } bool IsWeaponSkill(uint32 skill) |