Groups now only disband if all members reject the invitation (as opposed to if any member rejects the invitation).
Port From (https://github.com/TrinityCore/TrinityCore/commit/e3077813d5bf4521fff8be3ea24db231ed00c02f)
This commit is contained in:
@@ -253,11 +253,14 @@ namespace Game.Entities
|
||||
|
||||
group.RemoveInvite(this);
|
||||
|
||||
if (group.GetMembersCount() <= 1) // group has just 1 member => disband
|
||||
if (group.IsCreated())
|
||||
{
|
||||
if (group.IsCreated())
|
||||
if (group.GetMembersCount() <= 1) // group has just 1 member => disband
|
||||
group.Disband(true);
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
if (group.GetInviteeCount() <= 1)
|
||||
group.RemoveAllInvites();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user