aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-03-12 02:58:58 -0300
committerariel- <ariel-@users.noreply.github.com>2018-03-12 02:58:58 -0300
commit8a8c7793c435c0fd98278d9b5f960db4e5c091be (patch)
tree6a3f70b5688978b49abdbed993f1af79a93f4dd1 /src
parentac976550632f17f5a3ec7eaae354f84faf2656e5 (diff)
Core/Auras: cleanly remove linked auras when unapplying effect
Closes #21588
Diffstat (limited to 'src')
-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 69ea2a8d3f8..30f8cc26479 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -4902,12 +4902,10 @@ void AuraEffect::HandleAuraLinked(AuraApplication const* aurApp, uint8 mode, boo
if (apply)
{
Unit* caster = triggeredSpellInfo->NeedsToBeTriggeredByCaster(m_spellInfo) ? GetCaster() : target;
-
if (!caster)
return;
CastSpellExtraArgs args(this);
-
if (GetAmount()) // If amount avalible cast with basepoints (Crypt Fever for example)
args.AddSpellMod(SPELLVALUE_BASE_POINT0, GetAmount());
@@ -4916,7 +4914,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)