diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-04 13:23:09 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-04 13:23:09 +0200 |
commit | 07e0efdb469890c4847df38aced61baf12c1ec5b (patch) | |
tree | 46321c918463d38402570201233dc6006ce9bc74 /core/src/ch/asynk | |
parent | e89cb4f1a593603c9a2652ae612d61b0b0f1cb15 (diff) | |
download | RustAndDust-07e0efdb469890c4847df38aced61baf12c1ec5b.zip RustAndDust-07e0efdb469890c4847df38aced61baf12c1ec5b.tar.gz |
Map: break move only for 1 hex
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Map.java | 2 |
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); } } |