summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateReplay.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
index 74cd1b4..38cf757 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
@@ -81,6 +81,7 @@ public class StateReplay extends StateCommon
@Override
public StateType execute()
{
- return StateType.DONE;
+ // called at the end of animation DONE -> burn 1 AP
+ return ((order.cost == 0) ? StateType.REPLAY : StateType.DONE);
}
}