mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
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,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
|
||||
|
||||
Reference in New Issue
Block a user