public void SwitchesLoop(bool begin) { // TODO: LMAOOOOOOOOO if (begin) { Switches.Clear(); StandBy.Clear(); PositionStandBy.Clear(); } else { _switchesRequired--; } if (_switchesRequired == 0) { new Thread(() => PBEBattle.SelectSwitchesIfValid(_trainer, Switches)) { Name = ThreadName }.Start(); } else { AddMessage($"You must send in {_switchesRequired} Pokémon."); //BattleView.Actions.DisplaySwitches(); } }
public void SwitchesLoop(bool begin) { if (begin) { Switches.Clear(); StandBy.Clear(); PositionStandBy.Clear(); } else { _switchesRequired--; } if (_switchesRequired == 0) { OnSwitchesReady(); } else { BattleView.AddMessage($"You must send in {_switchesRequired} Pokémon.", messageLog: false); BattleView.Actions.DisplaySwitches(); } }