Entities/Creature: Some asserts are now LOG_ERRORs that block spawning. Fix a group spawning bug exposed by the CoS merge. Improve some command output.

Port From (https://github.com/TrinityCore/TrinityCore/commit/2225cb120100da741814dec7515b191cc68f07be)
This commit is contained in:
hondacrx
2021-12-27 15:51:24 -05:00
parent 5321cc2090
commit a693bed211
3 changed files with 26 additions and 8 deletions
+2 -2
View File
@@ -2708,9 +2708,9 @@ namespace Game.Maps
}
long respawnTime = GetRespawnTime(data.type, data.spawnId);
if (respawnTime != 0 && respawnTime > GameTime.GetGameTime())
if (respawnTime != 0)
{
if (!force && !ignoreRespawn)
if (!force && !ignoreRespawn && respawnTime > GameTime.GetGameTime())
continue;
// we need to remove the respawn time, otherwise we'd end up double spawning