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

@@ -50,7 +50,7 @@ public:
KillMagnetEvent(Unit& self) : _self(self) { }
bool Execute(uint64 /*e_time*/, uint32 /*p_time*/) override
{
_self.setDeathState(JUST_DIED);
_self.setDeathState(DeathState::JustDied);
return true;
}

View File

@@ -259,7 +259,7 @@ void npc_escortAI::UpdateAI(uint32 diff)
if (m_bCanInstantRespawn)
{
me->setDeathState(JUST_DIED);
me->setDeathState(DeathState::JustDied);
me->Respawn();
}
else
@@ -299,7 +299,7 @@ void npc_escortAI::UpdateAI(uint32 diff)
{
if (m_bCanInstantRespawn)
{
me->setDeathState(JUST_DIED);
me->setDeathState(DeathState::JustDied);
me->Respawn();
}
else