mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
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;
|
++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());
|
sScriptMgr->OnPlayerAfterSpecSlotChanged(this, GetActiveSpec());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user