diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Ctrl.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java index cc6f801..f430846 100644 --- a/core/src/ch/asynk/tankontank/game/Ctrl.java +++ b/core/src/ch/asynk/tankontank/game/Ctrl.java @@ -151,14 +151,16 @@ public class Ctrl implements Disposable { StateType nextState = this.state.done(); - if (map.activatedPawns.size() > 0) { - player.burnDownOneAp(); - hud.update(); + if (nextState == StateType.DONE) { + if (map.activatedPawns.size() > 0) { + TankOnTank.debug("burn down 1AP"); + player.burnDownOneAp(); + hud.update(); + } + if (player.apExhausted()) + hud.notifyEndOfTurn(); } - if (player.apExhausted()) - swicthPlayer(); - if (nextState == StateType.DONE) nextState = battle.getState(player); |