la ca marche ?

This commit is contained in:
Damien 2021-05-12 19:11:47 +02:00
parent 767d23c0d6
commit 04a6c0a869

View file

@ -45,7 +45,7 @@ public class Bow extends Actor {
} else if (pressed && power > 50) {
pressed = false;
GameScreen.playerCurrent.setActive(false);
Arrow arrowShot = new Arrow(angle, power, GameScreen.playerCurrent, false);
Arrow arrowShot = new Arrow(angle, power, GameScreen.playerCurrent);
GameScreen.setFocus(arrowShot); // do not use constructor 2 times
GameScreen.arrows.addActor(arrowShot);
} else {