Core/AreaTriggers: Added SpawnDifficulties for spawned areatriggers (#29284)

This commit is contained in:
Traesh
2023-09-07 00:13:47 +02:00
committed by GitHub
parent d645b7e9cd
commit 0bf5cf33c7
7 changed files with 73 additions and 30 deletions

View File

@@ -145,7 +145,7 @@ void ObjectGridLoader::Visit(CreatureMapType &m)
void ObjectGridLoader::Visit(AreaTriggerMapType& m)
{
CellCoord cellCoord = i_cell.GetCellCoord();
CellGuidSet const* areaTriggers = sAreaTriggerDataStore->GetAreaTriggersForMapAndCell(i_map->GetId(), cellCoord.GetId());
CellGuidSet const* areaTriggers = sAreaTriggerDataStore->GetAreaTriggersForMapAndCell(i_map->GetId(), i_map->GetDifficultyID(), cellCoord.GetId());
if (areaTriggers)
LoadHelper(*areaTriggers, cellCoord, m, i_areaTriggers, i_map);
}