mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
refactor(Core/Misc): Make DeathState enum class (#17607)
This commit is contained in:
@@ -577,7 +577,7 @@ public:
|
||||
Precious()->RemoveCorpse(false, false);
|
||||
Precious()->SetPosition(current);
|
||||
Precious()->SetHomePosition(current);
|
||||
Precious()->setDeathState(JUST_RESPAWNED);
|
||||
Precious()->setDeathState(DeathState::JustRespawned);
|
||||
Precious()->UpdateObjectVisibility(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -1006,7 +1006,7 @@ public:
|
||||
{
|
||||
if (guid != savedPatient->GetGUID()) // Don't kill the last guy we just saved
|
||||
if (Creature* patient = ObjectAccessor::GetCreature(*me, guid))
|
||||
patient->setDeathState(JUST_DIED);
|
||||
patient->setDeathState(DeathState::JustDied);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1155,7 +1155,7 @@ public:
|
||||
{
|
||||
me->RemoveUnitFlag(UNIT_FLAG_IN_COMBAT);
|
||||
me->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->setDeathState(JUST_DIED);
|
||||
me->setDeathState(DeathState::JustDied);
|
||||
me->SetDynamicFlag(32);
|
||||
|
||||
if (DoctorGUID)
|
||||
|
||||
Reference in New Issue
Block a user