Core/Pools: Fix pools with 1 member never spawning anything anymore

Port From (https://github.com/TrinityCore/TrinityCore/commit/9c3dc31a3764681ae641e24ab61cd5256cc3331e)
This commit is contained in:
hondacrx
2022-05-28 17:49:41 -04:00
parent 06da4c2dfd
commit 504da24dd0
3 changed files with 21 additions and 8 deletions
+5 -2
View File
@@ -3277,9 +3277,12 @@ namespace Game.Entities
return false;
}
}
else
{
// compatibility mode creatures will be respawned in ::Update()
m_deathState = DeathState.Dead;
}
// compatibility mode creatures will be respawned in ::Update()
m_deathState = DeathState.Dead;
if (CanFly())
{
float tz = map.GetHeight(GetPhaseShift(), data.SpawnPoint, true, MapConst.MaxFallDistance);