mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 16:16:27 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user