mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-24 20:45:59 +00:00
refactor(Core/Misc): Make DeathState enum class (#17607)
This commit is contained in:
@@ -238,7 +238,7 @@ public:
|
||||
Creature* boss = ObjectAccessor::GetCreature(*me, AnetheronGUID);
|
||||
if (!boss || boss->isDead())
|
||||
{
|
||||
me->setDeathState(JUST_DIED);
|
||||
me->setDeathState(DeathState::JustDied);
|
||||
me->RemoveCorpse();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ public:
|
||||
Creature* boss = ObjectAccessor::GetCreature(*me, AzgalorGUID);
|
||||
if (!boss || boss->isDead())
|
||||
{
|
||||
me->setDeathState(JUST_DIED);
|
||||
me->setDeathState(DeathState::JustDied);
|
||||
me->RemoveCorpse();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -584,7 +584,7 @@ public:
|
||||
{
|
||||
if ((faction == 0 && LastOverronPos == 17) || (faction == 1 && LastOverronPos == 21))
|
||||
{
|
||||
me->setDeathState(DEAD);
|
||||
me->setDeathState(DeathState::Dead);
|
||||
me->RemoveCorpse();
|
||||
}
|
||||
}
|
||||
@@ -685,7 +685,7 @@ public:
|
||||
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_ATTACK_UNARMED);
|
||||
if ((faction == 0 && LastOverronPos == 17) || (faction == 1 && LastOverronPos == 21))
|
||||
{
|
||||
me->setDeathState(DEAD);
|
||||
me->setDeathState(DeathState::Dead);
|
||||
me->RemoveCorpse();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ public:
|
||||
if (!arthas->IsAlive())
|
||||
{
|
||||
EnsureGridLoaded();
|
||||
arthas->setDeathState(DEAD);
|
||||
arthas->setDeathState(DeathState::Dead);
|
||||
arthas->Respawn();
|
||||
}
|
||||
else
|
||||
|
||||
@@ -264,7 +264,7 @@ public:
|
||||
EnsureGridLoaded();
|
||||
thrall->SetVisible(false);
|
||||
Reposition(thrall);
|
||||
thrall->setDeathState(DEAD);
|
||||
thrall->setDeathState(DeathState::Dead);
|
||||
thrall->Respawn();
|
||||
thrall->SetVisible(true);
|
||||
SaveToDB();
|
||||
|
||||
Reference in New Issue
Block a user