refactor(Core/Misc): Make DeathState enum class (#17607)

This commit is contained in:
Kitzunu
2023-10-28 10:54:03 +02:00
committed by GitHub
parent 79b39f9655
commit f757e93da5
47 changed files with 112 additions and 112 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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();
}
}

View File

@@ -224,7 +224,7 @@ public:
if (!arthas->IsAlive())
{
EnsureGridLoaded();
arthas->setDeathState(DEAD);
arthas->setDeathState(DeathState::Dead);
arthas->Respawn();
}
else

View File

@@ -264,7 +264,7 @@ public:
EnsureGridLoaded();
thrall->SetVisible(false);
Reposition(thrall);
thrall->setDeathState(DEAD);
thrall->setDeathState(DeathState::Dead);
thrall->Respawn();
thrall->SetVisible(true);
SaveToDB();