Core/Auras: cleanly remove linked auras when unapplying effect

Closes #21588

(cherry picked from commit 8a8c7793c4)
This commit is contained in:
ariel-
2018-03-12 02:58:58 -03:00
committed by Shauren
parent b2de3efb4b
commit ad2d904a75

View File

@@ -4926,9 +4926,7 @@ void AuraEffect::HandleAuraLinked(AuraApplication const* aurApp, uint8 mode, boo
{
if (apply)
{
CastSpellExtraArgs args(this);
if (GetAmount()) // If amount avalible cast with basepoints (Crypt Fever for example)
args.AddSpellMod(SPELLVALUE_BASE_POINT0, GetAmount());
@@ -4937,7 +4935,7 @@ void AuraEffect::HandleAuraLinked(AuraApplication const* aurApp, uint8 mode, boo
else
{
ObjectGuid casterGUID = triggeredSpellInfo->NeedsToBeTriggeredByCaster(m_spellInfo) ? GetCasterGUID() : target->GetGUID();
target->RemoveAura(triggeredSpellId, casterGUID, 0, aurApp->GetRemoveMode());
target->RemoveAura(triggeredSpellId, casterGUID);
}
}
else if (mode & AURA_EFFECT_HANDLE_REAPPLY && apply)