summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-02 21:53:22 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-02 21:53:22 +0100
commit83ed6789a75a1c25d6745a64393835b54e6567d4 (patch)
tree1fa4a14a8a471afdafb8a89a4e2e6ef14dd1e9fa /core/src
parent07bd7deb3a4f1e7d88f1897f511e519df30cc13d (diff)
downloadRustAndDust-83ed6789a75a1c25d6745a64393835b54e6567d4.zip
RustAndDust-83ed6789a75a1c25d6745a64393835b54e6567d4.tar.gz
Map: clear activetedUnits on AT single attack after stating animation
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 390b517..61e98c8 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -557,9 +557,6 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
breakUnits.add(u);
}
- if ((activatedUnits.size() == 1) && unit.isA(Unit.UnitType.AT_GUN) && target.isHardTarget())
- activatedUnits.clear();
-
if (success) {
unclaim(target.getHex());
removePawn(target);
@@ -569,6 +566,9 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
addEngagementAnimation(target);
+ if ((activatedUnits.size() == 1) && unit.isA(Unit.UnitType.AT_GUN) && target.isHardTarget())
+ activatedUnits.clear();
+
return success;
}