Core/LFG: Filter out lfg dungeons that have invalid map/difficulty pairs
Port From (https://github.com/TrinityCore/TrinityCore/commit/f44ee96682548960742e6275de337b4eb90330a8)
This commit is contained in:
@@ -176,6 +176,9 @@ namespace Game.DungeonFinding
|
||||
// Initialize Dungeon map with data from dbcs
|
||||
foreach (var dungeon in CliDB.LFGDungeonsStorage.Values)
|
||||
{
|
||||
if (Global.DB2Mgr.GetMapDifficultyData((uint)dungeon.MapID, dungeon.DifficultyID) == null)
|
||||
continue;
|
||||
|
||||
switch (dungeon.TypeID)
|
||||
{
|
||||
case LfgType.Dungeon:
|
||||
|
||||
Reference in New Issue
Block a user