@Override public Attack getMove(IBattleParticipant participant2) { return Attack.getWhichMoveIsBest( trainer.releasedPokemon.getHelper().getMoveset(), participant2.currentPokemon().getType(), trainer.releasedPokemon.getHelper(), participant2.currentPokemon()); }
@Override public void EndBattle(boolean didWin, IBattleParticipant foe) { trainer.releasedPokemon.getHelper().getBattleStats().clearBattleStats(); trainer.releasedPokemon.EndBattle(); trainer.healAllPokemon(); this.trainer.setAttackTarget(null); if (didWin) trainer.winBattle(foe.currentPokemon().getOwner()); else trainer.loseBattle(foe.currentPokemon().getOwner()); }