summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-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;
}