fix(Core/DungeonFinder): enable requeueing inside random dungeon (#8948)
- Closes #8609
This commit is contained in:
@@ -806,6 +806,7 @@ namespace lfg
|
|||||||
{
|
{
|
||||||
LFGQueue& queue = GetQueue(gguid);
|
LFGQueue& queue = GetQueue(gguid);
|
||||||
queue.RemoveFromQueue(gguid);
|
queue.RemoveFromQueue(gguid);
|
||||||
|
uint32 dungeonId = GetDungeon(gguid);
|
||||||
SetState(gguid, LFG_STATE_NONE);
|
SetState(gguid, LFG_STATE_NONE);
|
||||||
const LfgGuidSet& players = GetPlayers(gguid);
|
const LfgGuidSet& players = GetPlayers(gguid);
|
||||||
for (LfgGuidSet::const_iterator it = players.begin(); it != players.end(); ++it)
|
for (LfgGuidSet::const_iterator it = players.begin(); it != players.end(); ++it)
|
||||||
@@ -813,6 +814,13 @@ namespace lfg
|
|||||||
SetState(*it, LFG_STATE_NONE);
|
SetState(*it, LFG_STATE_NONE);
|
||||||
SendLfgUpdateParty(*it, LfgUpdateData(LFG_UPDATETYPE_REMOVED_FROM_QUEUE));
|
SendLfgUpdateParty(*it, LfgUpdateData(LFG_UPDATETYPE_REMOVED_FROM_QUEUE));
|
||||||
}
|
}
|
||||||
|
if (Group* group = sGroupMgr->GetGroupByGUID(gguid.GetCounter()))
|
||||||
|
{
|
||||||
|
if (group->isLFGGroup())
|
||||||
|
{
|
||||||
|
SetDungeon(gguid, dungeonId);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user