mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
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);
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user