summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-14 11:42:58 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-14 11:43:20 +0200
commitc3326c05611f54164741354e7a6930225ca86783 (patch)
tree2497a43929502b4f755e215ad813b0467925c88e /core/src/ch/asynk
parent35c36c2297f0078d9b50ed5cee7dbfaa0e67810f (diff)
downloadRustAndDust-c3326c05611f54164741354e7a6930225ca86783.zip
RustAndDust-c3326c05611f54164741354e7a6930225ca86783.tar.gz
Board: buildAttackAssists(...) jump over attack leader
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 6a97afd..0111d40 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -374,7 +374,7 @@ public abstract class Board implements Disposable
GridPoint2 from = gridPoint2Pool.obtain();
while (units.hasNext()) {
Pawn p = units.next();
- if (!p.canAttack()) continue;
+ if ((p == pawn) || !p.canAttack()) continue;
getHexUnder(p, from);
if (searchBoard.buildAttack(p, !p.canAssistAttackWithoutLos(), target, from.x, from.y, coords.x, coords.y)) {
if (p != pawn) {