1718192021222324252627
{ int ailment = 1 + (int)(Math.random() * ((5 - 1) + 1)); if (ailment == 1 && !pokemon.isVolatile()) { pokemon = new Poisoned(pokemon); } if (pokemon.getHealth() <= damage) { pokemon.setHealth(0);