mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/Spells): Fix movement impairment auras not being removed (#19684)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user