battle-engine.js
/**
	 * Automatically finish a choice if not currently complete
	 */
Automatically finish a choice if not currently complete
Automatically finish a choice if not currently complete
autoChoose() {
		if (this.currentRequest === 'teampreview') {
			if (!this.isChoiceDone()) this.chooseTeam();
		} else if (this.currentRequest === 'switch') {
			while (!this.isChoiceDone()) this.chooseSwitch();
		} else if (this.currentRequest === 'move') {
			while (!this.isChoiceDone()) this.chooseMove();
		}
		return true;
	}
autoChoose ( ) { if ( this . currentRequest === 'teampreview' ) { if ( ! this . isChoiceDone ( ) ) this . chooseTeam ( ) ; } else if ( this . currentRequest === 'switch' ) { while ( ! this . isChoiceDone ( ) ) this . chooseSwitch ( ) ; } else if ( this . currentRequest === 'move' ) { while ( ! this . isChoiceDone ( ) ) this . chooseMove ( ) ; } return true ; }
Automatically finish a choice if not currently complete
Automatically finish a choice if not currently complete