From b027dd4da85906e32afabf628a756ad90c0bc11b Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 9 Sep 2021 13:36:37 -0400 Subject: [PATCH] Core/Auras: cleanly remove linked auras when unapplying effect Port From (https://github.com/TrinityCore/TrinityCore/commit/ad2d904a75389c29c7613ce876368bf9563fcaaa) --- Source/Game/Spells/Auras/AuraEffect.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Game/Spells/Auras/AuraEffect.cs b/Source/Game/Spells/Auras/AuraEffect.cs index f5b667a52..988236239 100644 --- a/Source/Game/Spells/Auras/AuraEffect.cs +++ b/Source/Game/Spells/Auras/AuraEffect.cs @@ -4633,7 +4633,6 @@ namespace Game.Spells if (apply) { CastSpellExtraArgs args = new(this); - if (GetAmount() != 0) // If amount avalible cast with basepoints (Crypt Fever for example) args.AddSpellMod(SpellValueMod.BasePoint0, GetAmount()); @@ -4642,7 +4641,7 @@ namespace Game.Spells else { ObjectGuid casterGUID = triggeredSpellInfo.NeedsToBeTriggeredByCaster(m_spellInfo) ? GetCasterGUID() : target.GetGUID(); - target.RemoveAura(triggeredSpellId, casterGUID, 0, aurApp.GetRemoveMode()); + target.RemoveAura(triggeredSpellId, casterGUID); } } else if (mode.HasAnyFlag(AuraEffectHandleModes.Reapply) && apply)