public void RegisterPlayer(PlayerMobile pm) { PVPArenaSystem.SendParticipantMessage(this, 1115956); // A new duelist has joined your session! PVPArenaSystem.SendMessage(pm, 1115955); // You have joined the session. if (BattleMode == BattleMode.Team) { if (TeamOrder.Count > TeamChaos.Count) { TeamChaos.AddParticipant(pm); } else { TeamOrder.AddParticipant(pm); } } else { if (Teams[Teams.Count - 1].Unoccupied) { Teams[Teams.Count - 1].AddParticipant(pm); } else { Teams.Add(new ArenaTeam(pm)); } } }
public bool SwapParticipant(PlayerMobile pm) { if (HasBegun) { return(false); } if (TeamOrder.RemoveParticipant(pm)) { TeamChaos.AddParticipant(pm); return(true); } else if (TeamChaos.RemoveParticipant(pm)) { TeamOrder.AddParticipant(pm); return(true); } return(false); }