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/tankontank/game/Map.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index dbf029e..faf8857 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -299,7 +299,7 @@ public abstract class Map extends Board
int cnt = activatedUnits.size();
int def = target.getDefense(unit.getTile());
int flk = (flankAttack ? Unit.FLANK_ATTACK_BONUS : 0);
- int tdf = (terrainBonus ? unit.getTile().defense() : 0);
+ int tdf = (terrainBonus ? target.getTile().defense() : 0);
int wdf = 0;
if (night) {
if (distance > 3)