Core/BattlegroundMap: Load all cells when created & mark all creatures as active (#29410)

This commit is contained in:
Jeremy
2023-11-14 18:40:39 +01:00
committed by GitHub
parent 740136af41
commit e72bde5236
6 changed files with 25 additions and 0 deletions

View File

@@ -122,6 +122,10 @@ BattlegroundMap* MapManager::CreateBattleground(uint32 mapId, uint32 instanceId,
ASSERT(map->IsBattlegroundOrArena());
map->SetBG(bg);
bg->SetBgMap(map);
if (sWorld->getBoolConfig(CONFIG_BATTLEGROUNDMAP_LOAD_GRIDS))
map->LoadAllCells();
return map;
}