mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 16:56:07 +00:00
refactor(Core/Spells): Add helpers for HasAuraType (#20802)
This commit is contained in:
@@ -259,7 +259,7 @@ class spell_suppression_aura : public SpellScript
|
||||
targets.remove_if([&](WorldObject* target) -> bool
|
||||
{
|
||||
Unit* unit = target->ToUnit();
|
||||
return !unit || unit->HasAuraType(SPELL_AURA_MOD_STEALTH);
|
||||
return !unit || unit->HasStealthAura();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user