mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
feat(Core: new hook OnPlayerQueueRandomDungeon() and revert (now unnecessary) PR (#8196)
This commit is contained in:
@@ -405,7 +405,7 @@ namespace lfg
|
||||
DungeonProgressionRequirements const* ar = sObjectMgr->GetAccessRequirement(dungeon->map, Difficulty(dungeon->difficulty));
|
||||
|
||||
uint32 lockData = 0;
|
||||
if (dungeon->expansion > expansion || dungeon->expansion > sWorld->getIntConfig(CONFIG_LFG_DUNGEON_FINDER_EXPANSION))
|
||||
if (dungeon->expansion > expansion)
|
||||
lockData = LFG_LOCKSTATUS_INSUFFICIENT_EXPANSION;
|
||||
else if (DisableMgr::IsDisabledFor(DISABLE_TYPE_MAP, dungeon->map, player))
|
||||
lockData = LFG_LOCKSTATUS_RAID_LOCKED;
|
||||
@@ -572,6 +572,7 @@ namespace lfg
|
||||
else
|
||||
{
|
||||
rDungeonId = (*dungeons.begin());
|
||||
sScriptMgr->OnPlayerQueueRandomDungeon(player, rDungeonId);
|
||||
}
|
||||
// No break on purpose (Random can only be dungeon or heroic dungeon)
|
||||
[[fallthrough]];
|
||||
|
||||
Reference in New Issue
Block a user