From 8e2e799e94356a4f1a2013b766865fda28f31d31 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 11 Jan 2023 01:25:03 -0500 Subject: [PATCH] Core/Spells: Update IsPrimaryProfessionSkill filtering Port From (https://github.com/TrinityCore/TrinityCore/commit/d90b526c28cf3b33e52d3ce432cdade1ce5e050e) --- Source/Game/Spells/SpellManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellManager.cs b/Source/Game/Spells/SpellManager.cs index 81548f2f1..0f4992f06 100644 --- a/Source/Game/Spells/SpellManager.cs +++ b/Source/Game/Spells/SpellManager.cs @@ -4679,7 +4679,7 @@ namespace Game.Entities public bool IsPrimaryProfessionSkill(uint skill) { SkillLineRecord pSkill = CliDB.SkillLineStorage.LookupByKey(skill); - return pSkill != null && pSkill.CategoryID == SkillCategory.Profession; + return pSkill != null && pSkill.CategoryID == SkillCategory.Profession && pSkill.ParentSkillLineID == 0; } public bool IsWeaponSkill(uint skill)