summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/states
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-19 23:51:28 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-19 23:51:28 +0100
commitdc688c7dfe946fc2672624a362960662b291d99b (patch)
tree4bb4f781eb308289ef66576810bc6e97571deea3 /core/src/ch/asynk/tankontank/game/states
parent76c75a08181f26bd7f33983e5b873ca052b46bf9 (diff)
downloadRustAndDust-dc688c7dfe946fc2672624a362960662b291d99b.zip
RustAndDust-dc688c7dfe946fc2672624a362960662b291d99b.tar.gz
StatePromote: must go through DONE state to burn down 1 AP
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StatePromote.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StatePromote.java b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
index 1950847..81d6d7e 100644
--- a/core/src/ch/asynk/tankontank/game/states/StatePromote.java
+++ b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
@@ -7,10 +7,10 @@ public class StatePromote extends StateCommon
@Override
public void enter(StateType prevState)
{
- map.promoteUnit(selectedUnit);
ctrl.setAnimationCount(1);
- ctrl.setAfterAnimationState(StateType.SELECT);
+ ctrl.setAfterAnimationState(StateType.DONE);
ctrl.setState(StateType.ANIMATION);
+ map.promoteUnit(selectedUnit);
}
@Override