summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-04 13:23:09 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-04 13:23:09 +0200
commit07e0efdb469890c4847df38aced61baf12c1ec5b (patch)
tree46321c918463d38402570201233dc6006ce9bc74 /core/src/ch/asynk/rustanddust
parente89cb4f1a593603c9a2652ae612d61b0b0f1cb15 (diff)
downloadRustAndDust-07e0efdb469890c4847df38aced61baf12c1ec5b.zip
RustAndDust-07e0efdb469890c4847df38aced61baf12c1ec5b.tar.gz
Map: break move only for 1 hex
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);
}
}