summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-01 16:20:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-01 16:20:45 +0100
commit2d9c55c5a48319c9a826082b755859b1b472706d (patch)
tree06708a8dfffb5b1814b5bb11c0e3c215f72775e2 /core/src/ch
parenta7996c48d42a105953dc6e524d30bf2b7e51904f (diff)
downloadRustAndDust-2d9c55c5a48319c9a826082b755859b1b472706d.zip
RustAndDust-2d9c55c5a48319c9a826082b755859b1b472706d.tar.gz
Map: clear activatedUnits in case of ATG only attack after having launched the animations
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Map.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java
index ade2ceb..5ce653e 100644
--- a/core/src/ch/asynk/rustanddust/game/Map.java
+++ b/core/src/ch/asynk/rustanddust/game/Map.java
@@ -567,13 +567,13 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
addAnimation(destroy);
}
+ ctrl.hud.engagementSummary(e, ctrl.cfg.fxVolume);
+ addEngagementAnimation(e.defender);
+
// do not consume action points
if ((activatedUnits.size() == 1) && e.attacker.isA(Unit.UnitType.AT_GUN) && e.defender.isHardTarget())
activatedUnits.clear();
- ctrl.hud.engagementSummary(e, ctrl.cfg.fxVolume);
- addEngagementAnimation(e.defender);
-
return (e.success ? 1 : 0);
}