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

@@ -506,7 +506,7 @@ struct npc_echo_of_medivh : public ScriptedAI
piece->CombatStop();
piece->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
piece->setDeathState(JUST_RESPAWNED);
piece->setDeathState(DeathState::JustRespawned);
piece->SetHealth(piece->GetMaxHealth());
break;
}
@@ -528,7 +528,7 @@ struct npc_echo_of_medivh : public ScriptedAI
piece->CombatStop();
piece->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
piece->setDeathState(JUST_RESPAWNED);
piece->setDeathState(DeathState::JustRespawned);
piece->SetHealth(piece->GetMaxHealth());
break;
}

View File

@@ -265,7 +265,7 @@ public:
if (Creature* piece = instance->GetCreature(chessPieceGUID))
{
piece->RemoveAllAuras();
piece->setDeathState(JUST_RESPAWNED);
piece->setDeathState(DeathState::JustRespawned);
piece->SetHealth(piece->GetMaxHealth());
float x, y, z, o;
piece->GetHomePosition(x, y, z, o);