field.showMessage(poke.getName() + " is confused!");
if (field.getRandom().nextDouble() <= 0.5) {
return false;
}
field.showMessage("It hurt itself in its confusion!");
poke.useMove(new PokemonMove(PokemonType.T_TYPELESS, 40, 1.0, 1) {
public int use(BattleMechanics mech, Pokemon source, Pokemon target) {
int damage = mech.calculateDamage(this, source, target);
target.changeHealth(-damage, true);
return damage;