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:
ayase
2018-05-30 04:57:22 +08:00
committed by Barbz
parent 1b8ea19e1a
commit 064bbd9270
2 changed files with 3 additions and 2 deletions

View File

@@ -495,10 +495,11 @@ void LFGMgr::JoinLfg(Player* player, uint8 roles, LfgDungeonSet& dungeons, const
case LFG_STATE_PROPOSAL: // if joining again during proposal
joinData.result = LFG_JOIN_INTERNAL_ERROR;
break;
case LFG_STATE_FINISHED_DUNGEON:
/*case LFG_STATE_FINISHED_DUNGEON:
if (grp && grp->isLFGGroup())
joinData.result = LFG_JOIN_PARTY_NOT_MEET_REQS;
break;
*/
default:
break;
}

View File

@@ -42,7 +42,7 @@ void WorldSession::HandleLfgJoinOpcode(WorldPacket& recvData)
// pussywizard:
if (Group* g = GetPlayer()->GetGroup())
if (g->isLFGGroup() ? g->GetMembersCount() == MAXGROUPSIZE : g->GetLeaderGUID() != GetPlayer()->GetGUID())
if (g->isLFGGroup() && g->GetLeaderGUID() != GetPlayer()->GetGUID())
{
recvData.rfinish();
return;