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:
@@ -14112,11 +14112,17 @@ void Player::ActivateSpec(uint8 spec)
|
|||||||
|
|
||||||
// pussywizard: was => isn't
|
// pussywizard: was => isn't
|
||||||
if (itr->second->IsInSpec(oldSpec) && !itr->second->IsInSpec(spec))
|
if (itr->second->IsInSpec(oldSpec) && !itr->second->IsInSpec(spec))
|
||||||
|
{
|
||||||
SendLearnPacket(itr->first, false);
|
SendLearnPacket(itr->first, false);
|
||||||
|
// We want to remove all auras of the unlearned spell
|
||||||
|
_removeTalentAurasAndSpells(itr->first);
|
||||||
|
}
|
||||||
// pussywizard: wasn't => is
|
// pussywizard: wasn't => is
|
||||||
else if (!itr->second->IsInSpec(oldSpec) && itr->second->IsInSpec(spec))
|
else if (!itr->second->IsInSpec(oldSpec) && itr->second->IsInSpec(spec))
|
||||||
|
{
|
||||||
SendLearnPacket(itr->first, true);
|
SendLearnPacket(itr->first, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// xinef: apply glyphs from second spec
|
// xinef: apply glyphs from second spec
|
||||||
if (GetActiveSpec() != oldSpec)
|
if (GetActiveSpec() != oldSpec)
|
||||||
|
|||||||
Reference in New Issue
Block a user