diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-19 23:51:28 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-19 23:51:28 +0100 |
commit | dc688c7dfe946fc2672624a362960662b291d99b (patch) | |
tree | 4bb4f781eb308289ef66576810bc6e97571deea3 /core/src/ch/asynk/tankontank/game/states | |
parent | 76c75a08181f26bd7f33983e5b873ca052b46bf9 (diff) | |
download | RustAndDust-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.java | 4 |
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 |