Core/Maps: Fixed manual spawn groups being automatically spawned by conditions

This commit is contained in:
Shauren
2024-05-16 15:57:45 +02:00
parent e4d0c20ab3
commit acf750cbff

View File

@@ -2496,7 +2496,7 @@ void Map::InitSpawnGroupState()
for (uint32 spawnGroupId : *spawnGroups)
{
SpawnGroupTemplateData const* spawnGroupTemplate = ASSERT_NOTNULL(GetSpawnGroupData(spawnGroupId));
if (spawnGroupTemplate->flags & SPAWNGROUP_FLAG_SYSTEM)
if (spawnGroupTemplate->flags & (SPAWNGROUP_FLAG_SYSTEM | SPAWNGROUP_FLAG_MANUAL_SPAWN))
continue;
SetSpawnGroupActive(spawnGroupId, sConditionMgr->IsMapMeetingNotGroupedConditions(CONDITION_SOURCE_TYPE_SPAWN_GROUP, spawnGroupId, this));