mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 15:28:02 +00:00
refactor(Core/Spells): Add helpers for HasAuraType (#20802)
This commit is contained in:
@@ -725,7 +725,7 @@ struct npc_hallows_end_soh : public ScriptedAI
|
||||
bool checkBurningTriggers = false;
|
||||
for (ObjectGuid const& guid : unitList)
|
||||
if (Unit* c = ObjectAccessor::GetUnit(*me, guid))
|
||||
if (c->HasAuraType(SPELL_AURA_PERIODIC_DUMMY))
|
||||
if (c->HasPeriodicDummyAura())
|
||||
{
|
||||
checkBurningTriggers = true;
|
||||
break;
|
||||
@@ -743,7 +743,7 @@ struct npc_hallows_end_soh : public ScriptedAI
|
||||
bool failed = false;
|
||||
for (ObjectGuid const& guid : unitList)
|
||||
if (Unit* c = ObjectAccessor::GetUnit(*me, guid))
|
||||
if (c->HasAuraType(SPELL_AURA_PERIODIC_DUMMY))
|
||||
if (c->HasPeriodicDummyAura())
|
||||
{
|
||||
failed = true;
|
||||
break;
|
||||
@@ -791,7 +791,7 @@ struct npc_hallows_end_soh : public ScriptedAI
|
||||
{
|
||||
if (Unit* c = ObjectAccessor::GetUnit(*me, guid))
|
||||
{
|
||||
if (!c->HasAuraType(SPELL_AURA_PERIODIC_DUMMY))
|
||||
if (!c->HasPeriodicDummyAura())
|
||||
{
|
||||
tmpList.push_back(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user