mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 06:06:23 +00:00
refactor(Core/Misc): Make DeathState enum class (#17607)
This commit is contained in:
@@ -360,7 +360,7 @@ public:
|
||||
Creature* creature = (ObjectAccessor::GetCreature((*me), AddGUID[i]));
|
||||
if (!creature || !creature->IsAlive())
|
||||
{
|
||||
if (creature) creature->setDeathState(DEAD);
|
||||
if (creature) creature->setDeathState(DeathState::Dead);
|
||||
creature = me->SummonCreature(AddEntry[i], Pos_X[i], POS_Y, POS_Z, ORIENT, TEMPSUMMON_DEAD_DESPAWN, 0);
|
||||
if (creature) AddGUID[i] = creature->GetGUID();
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@ public:
|
||||
if (Unit* temp = ObjectAccessor::GetUnit(*me, SpiritGUID[i]))
|
||||
{
|
||||
temp->SetVisible(false);
|
||||
temp->setDeathState(DEAD);
|
||||
temp->setDeathState(DeathState::Dead);
|
||||
}
|
||||
}
|
||||
SpiritGUID[i].Clear();
|
||||
|
||||
Reference in New Issue
Block a user