mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
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.
# Conflicts: # src/server/game/Maps/Map.cpp # src/server/scripts/Commands/cs_list.cpp
This commit is contained in:
@@ -3410,9 +3410,9 @@ bool Map::SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn, bool force, std::v
|
||||
continue;
|
||||
|
||||
time_t respawnTime = GetRespawnTime(data->type, data->spawnId);
|
||||
if (respawnTime && respawnTime > time(NULL))
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user