public static void autoA() { spaceBar(); robot.delay(750); robot.mouseMove(605, 250); robot.delay(1000); robot.keyPress(KeyEvent.VK_A); robot.delay(100); robot.keyRelease(KeyEvent.VK_A); if (Math.random() * 10 > 8) // si random, usa la habilidad Q x-D Q(); getHP(); // si le queda poca vida flashea random x-DD System.out.println(listaColoresHP.get(2).getGreen()); if (listaColoresHP.get(2).getGreen() < 50) flashea(); }