mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 07:06:23 +00:00
refactor(Core/Misc): Make DeathState enum class (#17607)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user