diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index 822472a..acb0201 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -177,7 +177,7 @@ public class Unit extends HeadedPawn @Override public boolean canAttack(Pawn other) { - return isEnemy(other); + return (isEnemy(other) && canAttack()); } @Override |