aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxurion <zoltan@fatalerror.hu>2023-01-09 21:04:28 +0100
committerGitHub <noreply@github.com>2023-01-09 21:04:28 +0100
commitd90b526c28cf3b33e52d3ce432cdade1ce5e050e (patch)
tree9e3b5616037a6ed34affdb76e66ea869c6be4b23 /src
parent397d77511811312daaa6ce35f6a6512b41046f6b (diff)
Core/Spells: Update IsPrimaryProfessionSkill filtering (#28650)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp2
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)