mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
fix(Core/Creature): Set RespawnTime before AI Reset (#20684)
fix(Core/Creature): Set RespawnTIme before AI Reset
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user