1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2024-11-23 01:43:28 +00:00

fix 4 attacks

This commit is contained in:
Rémi Heredero 2022-06-20 16:48:41 +02:00
parent 2fcec74e00
commit 5d4aaa344d

View File

@ -125,15 +125,12 @@ public class ScreenBattle extends RenderingScreen{
if (battle.cursor > 3) battle.cursor = 0;
if (battle.cursor < 0) battle.cursor = 3;
//the enemy is attacking
if( battle.getAttackOn() == false){
if( battle.getAttackOn() == false){ //the enemy is attacking
if (c.keyStatus.get(Input.Keys.SPACE) || c.keyStatus.get(Input.Keys.A)){
battle.action(-1);
battle.cursor = 0;
}
}
//the enemy is speaking
if(battle.getAttackOn() == true){
} else if(battle.getAttackOn() == true){ //the enemy is speaking
if (c.keyStatus.get(Input.Keys.NUM_1) || c.keyStatus.get(Input.Keys.A) && b.cursor == 0){
battle.action(1);
battle.cursor = 0;