fix(Core/Spec): changing spec now removes auras of spells with rank > 1 (#7482)
- Closes https://github.com/azerothcore/azerothcore-wotlk/issues/4284
This commit is contained in:
parent
ba04d66e1e
commit
2929cddaf2
1 changed files with 6 additions and 0 deletions
|
|
@ -14112,10 +14112,16 @@ void Player::ActivateSpec(uint8 spec)
|
|||
|
||||
// pussywizard: was => isn't
|
||||
if (itr->second->IsInSpec(oldSpec) && !itr->second->IsInSpec(spec))
|
||||
{
|
||||
SendLearnPacket(itr->first, false);
|
||||
// We want to remove all auras of the unlearned spell
|
||||
_removeTalentAurasAndSpells(itr->first);
|
||||
}
|
||||
// pussywizard: wasn't => is
|
||||
else if (!itr->second->IsInSpec(oldSpec) && itr->second->IsInSpec(spec))
|
||||
{
|
||||
SendLearnPacket(itr->first, true);
|
||||
}
|
||||
}
|
||||
|
||||
// xinef: apply glyphs from second spec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue