Core/Spells: Implemented SPELL_EFFECT_REMOVE_AURA_BY_SPELL_LABEL
Port From (https://github.com/TrinityCore/TrinityCore/commit/99320464997a5411b7245cb952eaf6cdf8a2a978)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user