diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-03-12 02:58:58 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2018-03-12 02:58:58 -0300 |
commit | 8a8c7793c435c0fd98278d9b5f960db4e5c091be (patch) | |
tree | 6a3f70b5688978b49abdbed993f1af79a93f4dd1 /src | |
parent | ac976550632f17f5a3ec7eaae354f84faf2656e5 (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.cpp | 4 |
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) |