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:
Petric
2021-08-25 15:00:39 +01:00
committed by GitHub
parent ba04d66e1e
commit 2929cddaf2

View File

@@ -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