diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-20 10:22:52 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-20 10:22:52 +0200 |
commit | ad8eedcc8904c34ce35e13798bbb64d3096a46f8 (patch) | |
tree | 68682b9aeb44bc35153b3b7ebc1eeff2dea5e5e5 /core | |
parent | 6a85509a168d7dff26424f0d8022ae33624cbaf7 (diff) | |
download | RustAndDust-ad8eedcc8904c34ce35e13798bbb64d3096a46f8.zip RustAndDust-ad8eedcc8904c34ce35e13798bbb64d3096a46f8.tar.gz |
Unit: canAttack(Pawn other) calls canAttack()
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 |