From 4003efb9c9265c03e4dfda3f13fdf27096f95750 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 12 Feb 2023 01:29:20 -0500 Subject: [PATCH] Core/Spells: Implemented SPELL_EFFECT_REMOVE_AURA_BY_SPELL_LABEL Port From (https://github.com/TrinityCore/TrinityCore/commit/99320464997a5411b7245cb952eaf6cdf8a2a978) --- Source/Game/Spells/SpellEffects.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index c29aef668..f06851a84 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -5032,6 +5032,18 @@ namespace Game.Spells garrison.LearnBlueprint((uint)effectInfo.MiscValue); } + [SpellEffectHandler(SpellEffectName.RemoveAuraBySApellLabel)] + void EffectRemoveAuraBySpellLabel() + { + if (effectHandleMode != SpellEffectHandleMode.HitTarget) + return; + + if (!unitTarget) + return; + + unitTarget.RemoveAppliedAuras(aurApp => aurApp.GetBase().GetSpellInfo().HasLabel((uint)effectInfo.MiscValue)); + } + [SpellEffectHandler(SpellEffectName.CreateGarrison)] void EffectCreateGarrison() {