diff options
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 2 |
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) { |