summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-20 10:22:52 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-20 10:22:52 +0200
commitad8eedcc8904c34ce35e13798bbb64d3096a46f8 (patch)
tree68682b9aeb44bc35153b3b7ebc1eeff2dea5e5e5 /core/src/ch/asynk
parent6a85509a168d7dff26424f0d8022ae33624cbaf7 (diff)
downloadRustAndDust-ad8eedcc8904c34ce35e13798bbb64d3096a46f8.zip
RustAndDust-ad8eedcc8904c34ce35e13798bbb64d3096a46f8.tar.gz
Unit: canAttack(Pawn other) calls canAttack()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java2
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