fix(Core/DungeonFinder): enable requeueing inside random dungeon (#8948)

- Closes #8609
This commit is contained in:
UltraNix
2021-11-07 20:40:03 +01:00
committed by GitHub
parent f823328f7b
commit 53a7a295fd

View File

@@ -806,6 +806,7 @@ namespace lfg
{
LFGQueue& queue = GetQueue(gguid);
queue.RemoveFromQueue(gguid);
uint32 dungeonId = GetDungeon(gguid);
SetState(gguid, LFG_STATE_NONE);
const LfgGuidSet& players = GetPlayers(gguid);
for (LfgGuidSet::const_iterator it = players.begin(); it != players.end(); ++it)
@@ -813,6 +814,13 @@ namespace lfg
SetState(*it, LFG_STATE_NONE);
SendLfgUpdateParty(*it, LfgUpdateData(LFG_UPDATETYPE_REMOVED_FROM_QUEUE));
}
if (Group* group = sGroupMgr->GetGroupByGUID(gguid.GetCounter()))
{
if (group->isLFGGroup())
{
SetDungeon(gguid, dungeonId);
}
}
}
else
{