aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-03-12 02:58:58 -0300
committerShauren <shauren.trinity@gmail.com>2021-09-06 20:05:39 +0200
commitad2d904a75389c29c7613ce876368bf9563fcaaa (patch)
tree142b08f4e19cc7dc38a68d284e2615e08b1f31e2
parentb2de3efb4b3e023874b6e28dd3a0a82b2c735ca8 (diff)
Core/Auras: cleanly remove linked auras when unapplying effect
Closes #21588 (cherry picked from commit 8a8c7793c435c0fd98278d9b5f960db4e5c091be)
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp4
1 files changed, 1 insertions, 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)