public void SwitchTeam(Mobile player, BaseGameTeam team) { BaseGameTeam oldTeam = GetTeam(player); if (oldTeam == team) { return; } if (oldTeam != null) { oldTeam.RemovePlayer(player); } team.AddPlayer(player); }
public void SwitchTeam(Mobile player, BaseGameTeam team) { BaseGameTeam oldTeam = GetTeam(player); if (oldTeam == team) return; if (oldTeam != null) { oldTeam.RemovePlayer(player); } team.AddPlayer(player); }