mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
DB/SpawnGroup: Instance spawn group data for Tempest Keep: The Eye and Hellfire Citadel: Ramparts.
(also some minor adjustments to command output for convenience)
This commit is contained in:
@@ -3311,7 +3311,7 @@ bool Map::SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn, bool force, std::v
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Map::SpawnGroupDespawn(uint32 groupId, bool deleteRespawnTimes)
|
||||
bool Map::SpawnGroupDespawn(uint32 groupId, bool deleteRespawnTimes, size_t* count)
|
||||
{
|
||||
SpawnGroupTemplateData const* groupData = GetSpawnGroupData(groupId);
|
||||
if (!groupData || groupData->flags & SPAWNGROUP_FLAG_SYSTEM)
|
||||
@@ -3348,6 +3348,10 @@ bool Map::SpawnGroupDespawn(uint32 groupId, bool deleteRespawnTimes)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (count)
|
||||
*count = toUnload.size();
|
||||
|
||||
// now do the actual despawning
|
||||
for (WorldObject* obj : toUnload)
|
||||
obj->AddObjectToRemoveList();
|
||||
|
||||
Reference in New Issue
Block a user