diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index f40a6b8..40737ca 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -336,8 +336,9 @@ public abstract class Board implements Disposable Tile t = getTileSafe(neighbour); if (t != null) { Pawn p = t.getTopPawn(); - if ((p != null) && (!pawn.isEnemy(p))) + if ((p != null) && p.canMove() && !pawn.isEnemy(p)) { assists.add(neighbour); + } } } } |