summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Pawn.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Pawn.java b/core/src/ch/asynk/rustanddust/engine/Pawn.java
index f95347f..09b49aa 100644
--- a/core/src/ch/asynk/rustanddust/engine/Pawn.java
+++ b/core/src/ch/asynk/rustanddust/engine/Pawn.java
@@ -159,7 +159,12 @@ public abstract class Pawn implements Moveable, Disposable
public boolean isFlankAttack()
{
- return (attack.isClear && attack.isFlank);
+ return (isClearAttack() && attack.isFlank);
+ }
+
+ public boolean isClearAttack()
+ {
+ return attack.isClear;
}
public int attackDistance()