forked from mirror/azerothcore-wotlk
fix(Core/Player): Recheck shapeshift bonus auras on spec swap (#25764)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: ariel- <ariel-@users.noreply.github.com>
This commit is contained in:
@@ -15417,6 +15417,15 @@ void Player::ActivateSpec(uint8 spec)
|
||||
++iter;
|
||||
}
|
||||
|
||||
// Recheck shapeshift bonus auras: drop and re-apply form-tied passives
|
||||
// so buffs from talents missing in the new spec (e.g. Master Shapeshifter) go away
|
||||
Unit::AuraEffectList const& shapeshiftAuras = GetAuraEffectsByType(SPELL_AURA_MOD_SHAPESHIFT);
|
||||
for (AuraEffect* aurEff : shapeshiftAuras)
|
||||
{
|
||||
aurEff->HandleShapeshiftBoosts(this, false);
|
||||
aurEff->HandleShapeshiftBoosts(this, true);
|
||||
}
|
||||
|
||||
sScriptMgr->OnPlayerAfterSpecSlotChanged(this, GetActiveSpec());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user