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.

(cherry picked from commit ded18a2690)
This commit is contained in:
Treeston
2019-07-07 19:18:32 +02:00
committed by Shauren
parent f21599dc5d
commit 2225cb1201
3 changed files with 26 additions and 8 deletions

View File

@@ -3456,9 +3456,9 @@ bool Map::SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn, bool force, std::v
continue;
time_t respawnTime = GetRespawnTime(data->type, data->spawnId);
if (respawnTime && respawnTime > GameTime::GetGameTime())
if (respawnTime)
{
if (!force && !ignoreRespawn)
if (!force && !ignoreRespawn && (respawnTime > GameTime::GetGameTime()))
continue;
// we need to remove the respawn time, otherwise we'd end up double spawning