mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Prevent adding more than 5 people into RAID subgroup.
Optimized free subgroup in raid finding. Optimized method calls, now using const uint64& instead of value passing. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
454ff6e667
commit
61b2b3d234
3 changed files with 109 additions and 33 deletions
|
|
@ -543,6 +543,9 @@ void WorldSession::HandleGroupChangeSubGroupOpcode( WorldPacket & recv_data )
|
|||
/** error handling **/
|
||||
if(!group->IsLeader(GetPlayer()->GetGUID()) && !group->IsAssistant(GetPlayer()->GetGUID()))
|
||||
return;
|
||||
|
||||
if (!group->HasFreeSlotSubGroup(groupNr))
|
||||
return;
|
||||
/********************/
|
||||
|
||||
// everything's fine, do it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue