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:
@@ -5366,7 +5366,10 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal)
|
|||||||
|
|
||||||
// remove all spells that related to this skill
|
// remove all spells that related to this skill
|
||||||
for (SkillLineAbilityEntry const* pAbility : GetSkillLineAbilitiesBySkillLine(id))
|
for (SkillLineAbilityEntry const* pAbility : GetSkillLineAbilitiesBySkillLine(id))
|
||||||
|
{
|
||||||
removeSpell(sSpellMgr->GetFirstSpellInChain(pAbility->Spell), SPEC_MASK_ALL, false);
|
removeSpell(sSpellMgr->GetFirstSpellInChain(pAbility->Spell), SPEC_MASK_ALL, false);
|
||||||
|
RemoveAurasDueToSpell(pAbility->Spell);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (newVal) //add
|
else if (newVal) //add
|
||||||
|
|||||||
Reference in New Issue
Block a user