summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map4Orders.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
index 6893b2a..1403e6a 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java
@@ -272,10 +272,12 @@ public abstract class Map4Orders extends Map3Animations
} else {
resolveEngagement(e);
activableUnits.clear();
- for (Unit u : activatedUnits) {
- u.engage();
- if (u.canBreak())
- activableUnits.add(u);
+ if (e.success) {
+ for (Unit u : activatedUnits) {
+ u.engage();
+ if (u.canBreak())
+ activableUnits.add(u);
+ }
}
}