} else if (i.getAttributes().contains(ItemAttribute.BATTLE)) {
/* Pokeballs */
if (i.getName().equalsIgnoreCase("POKE BALL")) {
if (p.getBattleField() instanceof WildBattleField) {
WildBattleField w = (WildBattleField) p.getBattleField();
if (!w.throwPokeball(PokeBall.POKEBALL))
w.queueMove(0, BattleTurn.getMoveTurn(-1));
return true;
}
} else if (i.getName().equalsIgnoreCase("GREAT BALL")) {
if (p.getBattleField() instanceof WildBattleField) {