fix(Core/Skills): Remove profession passive auras on skill removal (#24955)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-03-01 18:51:30 -06:00
committed by GitHub
parent e0ea58879e
commit 6d48b463f1

View File

@@ -5366,7 +5366,10 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal)
// remove all spells that related to this skill
for (SkillLineAbilityEntry const* pAbility : GetSkillLineAbilitiesBySkillLine(id))
{
removeSpell(sSpellMgr->GetFirstSpellInChain(pAbility->Spell), SPEC_MASK_ALL, false);
RemoveAurasDueToSpell(pAbility->Spell);
}
}
}
else if (newVal) //add