fix(Core/Spells): Fix movement impairment auras not being removed (#19684)

This commit is contained in:
Andrew
2024-08-22 15:09:43 -03:00
committed by GitHub
parent 7037108e9c
commit c0b6eae0e1
3 changed files with 11 additions and 6 deletions

View File

@@ -880,6 +880,15 @@ bool SpellInfo::HasEffect(SpellEffects effect) const
return false;
}
bool SpellInfo::HasEffectMechanic(Mechanics mechanic) const
{
for (auto const& effect : Effects)
if (effect.Mechanic == mechanic)
return true;
return false;
}
bool SpellInfo::HasAura(AuraType aura) const
{
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)