From ce2ec7068686b61345b7bbac28adcce8ca3f1f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 19 Dec 2014 11:20:22 +0100 Subject: Player: reset on turn END not START --- core/src/ch/asynk/tankontank/game/Player.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/Player.java b/core/src/ch/asynk/tankontank/game/Player.java index e43e892..d5eba9b 100644 --- a/core/src/ch/asynk/tankontank/game/Player.java +++ b/core/src/ch/asynk/tankontank/game/Player.java @@ -164,15 +164,14 @@ public class Player turn += 1; else deploymentDone = (reinforcement.size() == 0); + for (Unit unit : units) + unit.reset(); } public void turnStart() { - if (isDeploymentDone()) { - for (Unit unit : units) - unit.reset(); + if (isDeploymentDone()) computeActionPoints(); - } } public int d6() -- cgit v1.1-2-g2b99