refactor(Core/Misc): Use NpcFlag helpers (#19676)

* chore(Core/Misc): Use HasNpcFlag instead of HasFlag

* extend to all npcflag helpers
This commit is contained in:
Kitzunu
2024-08-19 10:17:02 +02:00
committed by GitHub
parent 1275b64ef0
commit 337135bf9e
5 changed files with 13 additions and 14 deletions

View File

@@ -1790,7 +1790,7 @@ public:
if (!spellClickHandled)
return;
if (!me->GetUInt32Value(UNIT_NPC_FLAGS))
if (!me->GetNpcFlags())
return;
switch (me->GetArmor())
@@ -1806,7 +1806,7 @@ public:
break;
}
me->SetUInt32Value(UNIT_NPC_FLAGS, 0);
me->ReplaceAllNpcFlags(UNIT_NPC_FLAG_NONE);
me->DespawnOrUnsummon(1000);
}