mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +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();
|
loot.clear();
|
||||||
SelectLevel();
|
SelectLevel();
|
||||||
|
|
||||||
|
m_respawnedTime = GameTime::GetGameTime().count();
|
||||||
setDeathState(DeathState::JustRespawned);
|
setDeathState(DeathState::JustRespawned);
|
||||||
|
|
||||||
// MDic - Acidmanifesto: Do not override transform auras
|
// 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
|
//Re-initialize reactstate that could be altered by movementgenerators
|
||||||
InitializeReactState();
|
InitializeReactState();
|
||||||
|
|
||||||
m_respawnedTime = GameTime::GetGameTime().count();
|
|
||||||
}
|
}
|
||||||
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)
|
// xinef: relocate notifier, fixes npc appearing in corpse position after forced respawn (instead of spawn)
|
||||||
|
|||||||
Reference in New Issue
Block a user