예제 #1
0
        /// <summary>
        /// Handles an incoming group disband packet (used for leaving party in fact)
        /// </summary>
        /// <param name="client">the Session the incoming packet belongs to</param>
        /// <param name="packet">the full packet</param>
        public static void GroupDisband(IRealmClient client, RealmPacketIn packet)
        {
            GroupMember groupMember = client.ActiveCharacter.GroupMember;

            if (groupMember == null)
            {
                return;
            }
            groupMember.LeaveGroup();
        }