}
} else if (i.getName().equalsIgnoreCase("ULTRA BALL")) {
if (p.getBattleField() instanceof WildBattleField) {
WildBattleField w = (WildBattleField) p.getBattleField();
if (!w.throwPokeball(PokeBall.ULTRABALL))
w.queueMove(0, BattleTurn.getMoveTurn(-1));
return true;
}
} else if (i.getName().equalsIgnoreCase("MASTER BALL")) {
if (p.getBattleField() instanceof WildBattleField) {
WildBattleField w = (WildBattleField) p.getBattleField();