mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-31 03:39:16 +00:00 
			
		
		
		
	fix 4 attacks
This commit is contained in:
		| @@ -124,16 +124,13 @@ public class ScreenBattle extends RenderingScreen{ | |||||||
|  |  | ||||||
| 			if (battle.cursor > 3) battle.cursor = 0; | 			if (battle.cursor > 3) battle.cursor = 0; | ||||||
| 			if (battle.cursor < 0) battle.cursor = 3; | 			if (battle.cursor < 0) battle.cursor = 3; | ||||||
|  | 			 | ||||||
| 			//the enemy is attacking | 			if( battle.getAttackOn() == false){ //the enemy is attacking | ||||||
| 			if( battle.getAttackOn() == false){ |  | ||||||
| 				if (c.keyStatus.get(Input.Keys.SPACE) || c.keyStatus.get(Input.Keys.A)){ | 				if (c.keyStatus.get(Input.Keys.SPACE) || c.keyStatus.get(Input.Keys.A)){ | ||||||
| 					battle.action(-1); | 					battle.action(-1); | ||||||
|  | 					battle.cursor = 0; | ||||||
| 				} | 				} | ||||||
| 			} | 			} else if(battle.getAttackOn() == true){ //the enemy is speaking | ||||||
| 			 |  | ||||||
| 			//the enemy is speaking |  | ||||||
| 			if(battle.getAttackOn() == true){ |  | ||||||
| 				if (c.keyStatus.get(Input.Keys.NUM_1) || c.keyStatus.get(Input.Keys.A) && b.cursor == 0){ | 				if (c.keyStatus.get(Input.Keys.NUM_1) || c.keyStatus.get(Input.Keys.A) && b.cursor == 0){ | ||||||
| 					battle.action(1); | 					battle.action(1); | ||||||
| 					battle.cursor = 0; | 					battle.cursor = 0; | ||||||
| @@ -151,7 +148,7 @@ public class ScreenBattle extends RenderingScreen{ | |||||||
| 					battle.cursor = 0; | 					battle.cursor = 0; | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 			 |  | ||||||
| 			b.updateText(); | 			b.updateText(); | ||||||
| 			 | 			 | ||||||
| 			//mettre le front à false jusqu'à ce que le bouton soit relâché | 			//mettre le front à false jusqu'à ce que le bouton soit relâché | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user