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:
parent
e0ea58879e
commit
6d48b463f1
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue