summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Map.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java
index 6a0bb03..0c2edfa 100644
--- a/core/src/ch/asynk/rustanddust/game/Map.java
+++ b/core/src/ch/asynk/rustanddust/game/Map.java
@@ -103,7 +103,7 @@ public abstract class Map extends Map5Marshal
activableUnits.clear();
if (success) {
for (Unit unit : activatedUnits) {
- if (unit.canBreak())
+ if (unit.canBreak() && distance(e.defender.getTile(), unit.getTile()) == 1)
activableUnits.add(unit);
}
}