fix(DB/GameObject): correct Higher Learning pooled respawn cycle (#26439)

This commit is contained in:
Gazeshooter
2026-07-24 07:53:21 +01:00
committed by GitHub
parent d1331412e6
commit ca5b38fb6c
2 changed files with 32 additions and 1 deletions

View File

@@ -962,7 +962,10 @@ void GameObject::DespawnOrUnsummon(Milliseconds delay /*= 0ms*/, Seconds forceRe
}
uint32 poolid = m_spawnId ? sPoolMgr->IsPartOfAPool<GameObject>(m_spawnId) : 0;
if (poolid)
// Keep the current pooled gameobject reserved until its respawn timer expires.
// GameObject::Update() will update the pool when the object is ready to respawn.
if (poolid && !m_respawnTime)
{
sPoolMgr->UpdatePool<GameObject>(poolid, m_spawnId);
}