Core/Spells: Update IsPrimaryProfessionSkill filtering
Port From (https://github.com/TrinityCore/TrinityCore/commit/d90b526c28cf3b33e52d3ce432cdade1ce5e050e)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user