public bool InputAction(int teamId, int teamIndex, ActionInput input) { if (gaming) { if (input.GiveUp) { Controller.InputGiveUp(teamId, teamIndex); } else { try { for (int i = 0; i < Controller.GameSettings.Mode.OnboardPokemonsPerPlayer(); ++i) { var iai = input.Get(i); if (iai != null) { if (!Input(iai, Controller, Controller.Board[teamId][teamIndex + i])) { return(false); } } } } catch { Error(); } } return(Controller.CheckInputSucceed(teamId, teamIndex)); } return(false); }