summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-18 11:16:21 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-18 11:16:21 +0200
commitc5fef55dfb3452c86e3c7a3c54f09263ce3c7cff (patch)
tree724bf2e24794e6ccd0b9a8e35bbff5be14d05ed1 /core/src
parent466a5e83eff5384ebe857fa2506fa213e1378018 (diff)
downloadRustAndDust-c5fef55dfb3452c86e3c7a3c54f09263ce3c7cff.zip
RustAndDust-c5fef55dfb3452c86e3c7a3c54f09263ce3c7cff.tar.gz
StateAttack: clear the target hex
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateAttack.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateAttack.java b/core/src/ch/asynk/tankontank/game/states/StateAttack.java
index 9937913..91d6249 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateAttack.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateAttack.java
@@ -84,6 +84,7 @@ public class StateAttack extends StateCommon
System.err.print(" attack (" + from.x + ";" + from.y + ") -> (" + to.x + ";" + to.y + ") : 2D6 -> (" + d1 + " + " + d2 + ")");
if (map.attackPawn(selectedPawn, activePawn, from, to, d1 + d2))
ctrl.player.casualty(activePawn);
+ map.showTarget(to, false);
ctrl.setState(StateType.ANIMATION);
super.done();