summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-31 14:42:08 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-31 14:42:08 +0100
commit4b04d054dc7662c6d250230cae7c38696e69368a (patch)
tree4cf361d7b20c7ba934150cb95b26cff3dca24a2f /core/src/ch/asynk/tankontank/engine
parent8b2945254b143e337324ab2dfbb7d3ba7cf520d1 (diff)
downloadRustAndDust-4b04d054dc7662c6d250230cae7c38696e69368a.zip
RustAndDust-4b04d054dc7662c6d250230cae7c38696e69368a.tar.gz
Board: collectAttackAssists do not include attack leader
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-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 5f54564..9a9cbb2 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -304,7 +304,7 @@ public abstract class Board implements Disposable
assists.clear();
while (units.hasNext()) {
Pawn p = units.next();
- if (p.canAttack(target) && searchBoard.collectAttacks(p, target, !p.canAssistAttackWithoutLos()))
+ if ((p != pawn) && p.canAttack(target) && searchBoard.collectAttacks(p, target, !p.canAssistAttackWithoutLos()))
assists.add(p);
}