fix(Core/Creature): Set RespawnTime before AI Reset (#20684)

fix(Core/Creature): Set RespawnTIme before AI Reset
This commit is contained in:
Jelle Meeus 2024-11-22 16:23:21 +01:00 committed by GitHub
parent 695fc7994f
commit 4b03e97a63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2094,6 +2094,7 @@ void Creature::Respawn(bool force)
loot.clear();
SelectLevel();
m_respawnedTime = GameTime::GetGameTime().count();
setDeathState(DeathState::JustRespawned);
// MDic - Acidmanifesto: Do not override transform auras
@ -2125,7 +2126,6 @@ void Creature::Respawn(bool force)
//Re-initialize reactstate that could be altered by movementgenerators
InitializeReactState();
m_respawnedTime = GameTime::GetGameTime().count();
}
m_respawnedTime = GameTime::GetGameTime().count();
// xinef: relocate notifier, fixes npc appearing in corpse position after forced respawn (instead of spawn)