Core/Spells: Implemented SPELL_EFFECT_REMOVE_AURA_BY_SPELL_LABEL

Port From (https://github.com/TrinityCore/TrinityCore/commit/99320464997a5411b7245cb952eaf6cdf8a2a978)
This commit is contained in:
hondacrx
2023-02-12 01:29:20 -05:00
parent 5803d7e09e
commit 4003efb9c9
+12
View File
@@ -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()
{