From ad2d904a75389c29c7613ce876368bf9563fcaaa Mon Sep 17 00:00:00 2001 From: ariel- Date: Mon, 12 Mar 2018 02:58:58 -0300 Subject: [PATCH] Core/Auras: cleanly remove linked auras when unapplying effect Closes #21588 (cherry picked from commit 8a8c7793c435c0fd98278d9b5f960db4e5c091be) --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 7be6a7380bf..cf4cb47a925 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -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)