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

@@ -373,7 +373,7 @@ public:
if (!Vashj || !Vashj->IsAlive() || CAST_AI(boss_lady_vashj::boss_lady_vashjAI, Vashj->ToCreature()->AI())->Phase != 3)
{
// remove
me->setDeathState(DEAD);
me->setDeathState(DeathState::Dead);
me->RemoveCorpse();
me->SetFaction(FACTION_FRIENDLY);
}

View File

@@ -214,7 +214,7 @@ public:
if (summon->GetSpawnId())
{
summon->SetReactState(REACT_PASSIVE);
summon->setDeathState(JUST_RESPAWNED);
summon->setDeathState(DeathState::JustRespawned);
summon->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
}
}

View File

@@ -325,7 +325,7 @@ public:
if (id == 0)
{
me->setDeathState(JUST_DIED);
me->setDeathState(DeathState::JustDied);
me->RemoveCorpse();
me->SetHealth(0);
}