feat(Core/Config): add option for LFG expansion (#7256)

This commit is contained in:
Patrick Lewis
2021-08-30 11:39:19 -07:00
committed by GitHub
parent 10983b118d
commit 1c43e6ac6e
4 changed files with 13 additions and 1 deletions

View File

@@ -394,7 +394,7 @@ namespace lfg
DungeonProgressionRequirements const* ar = sObjectMgr->GetAccessRequirement(dungeon->map, Difficulty(dungeon->difficulty));
uint32 lockData = 0;
if (dungeon->expansion > expansion)
if (dungeon->expansion > expansion || dungeon->expansion > sWorld->getIntConfig(CONFIG_LFG_DUNGEON_FINDER_EXPANSION))
lockData = LFG_LOCKSTATUS_INSUFFICIENT_EXPANSION;
else if (DisableMgr::IsDisabledFor(DISABLE_TYPE_MAP, dungeon->map, player))
lockData = LFG_LOCKSTATUS_RAID_LOCKED;