mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-17 09:14:34 +00:00
refactor(Core/Misc): Make DeathState enum class (#17607)
This commit is contained in:
@@ -153,7 +153,7 @@ public:
|
||||
|
||||
if (Creature* brann = ObjectAccessor::GetCreature(*me, pInstance->GetGuidData(NPC_BRANN)))
|
||||
{
|
||||
brann->setDeathState(JUST_DIED);
|
||||
brann->setDeathState(DeathState::JustDied);
|
||||
brann->Respawn();
|
||||
brann->AI()->DoAction(5);
|
||||
}
|
||||
|
||||
@@ -601,7 +601,7 @@ public:
|
||||
{
|
||||
if (Creature* brann = ObjectAccessor::GetCreature(*me, pInstance->GetGuidData(NPC_BRANN)))
|
||||
{
|
||||
brann->setDeathState(JUST_DIED);
|
||||
brann->setDeathState(DeathState::JustDied);
|
||||
brann->Respawn();
|
||||
brann->AI()->DoAction(5);
|
||||
}
|
||||
|
||||
@@ -384,7 +384,7 @@ public:
|
||||
{
|
||||
if (param == ACTION_FERAL_RESPAWN)
|
||||
{
|
||||
me->setDeathState(JUST_RESPAWNED);
|
||||
me->setDeathState(DeathState::JustRespawned);
|
||||
|
||||
if (Player* target = SelectTargetFromPlayerList(200))
|
||||
AttackStart(target);
|
||||
|
||||
@@ -1109,7 +1109,7 @@ public:
|
||||
{
|
||||
if (_isTrio && param == ACTION_RESPAWN_TRIO)
|
||||
{
|
||||
me->setDeathState(JUST_RESPAWNED);
|
||||
me->setDeathState(DeathState::JustRespawned);
|
||||
Reset();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -316,7 +316,7 @@ public:
|
||||
{
|
||||
creature->SetDisableGravity(true);
|
||||
creature->SetPosition(creature->GetHomePosition());
|
||||
creature->setDeathState(JUST_DIED);
|
||||
creature->setDeathState(DeathState::JustDied);
|
||||
creature->StopMovingOnCurrentPos();
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user