mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
LFG - Queue again after dungeon (PR #883)
People should now be able to queue again, after last boss is killed. (Closes issue #856) Commits: * fix:Dungeon Queue - Not working(#856) * only the leader can re-queue * Update LFGHandler.cpp
This commit is contained in:
@@ -495,10 +495,11 @@ void LFGMgr::JoinLfg(Player* player, uint8 roles, LfgDungeonSet& dungeons, const
|
|||||||
case LFG_STATE_PROPOSAL: // if joining again during proposal
|
case LFG_STATE_PROPOSAL: // if joining again during proposal
|
||||||
joinData.result = LFG_JOIN_INTERNAL_ERROR;
|
joinData.result = LFG_JOIN_INTERNAL_ERROR;
|
||||||
break;
|
break;
|
||||||
case LFG_STATE_FINISHED_DUNGEON:
|
/*case LFG_STATE_FINISHED_DUNGEON:
|
||||||
if (grp && grp->isLFGGroup())
|
if (grp && grp->isLFGGroup())
|
||||||
joinData.result = LFG_JOIN_PARTY_NOT_MEET_REQS;
|
joinData.result = LFG_JOIN_PARTY_NOT_MEET_REQS;
|
||||||
break;
|
break;
|
||||||
|
*/
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ void WorldSession::HandleLfgJoinOpcode(WorldPacket& recvData)
|
|||||||
|
|
||||||
// pussywizard:
|
// pussywizard:
|
||||||
if (Group* g = GetPlayer()->GetGroup())
|
if (Group* g = GetPlayer()->GetGroup())
|
||||||
if (g->isLFGGroup() ? g->GetMembersCount() == MAXGROUPSIZE : g->GetLeaderGUID() != GetPlayer()->GetGUID())
|
if (g->isLFGGroup() && g->GetLeaderGUID() != GetPlayer()->GetGUID())
|
||||||
{
|
{
|
||||||
recvData.rfinish();
|
recvData.rfinish();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user