summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-22 12:42:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-22 12:42:43 +0100
commit0acd0e9959fd850223ba1212a5a4776f3cbf40bf (patch)
tree9e8c3b008f36304e555678c08b7e243e33abde50 /core/src/ch/asynk
parente8da76fb808ce27ccad32982ef4f48b482c28789 (diff)
downloadRustAndDust-0acd0e9959fd850223ba1212a5a4776f3cbf40bf.zip
RustAndDust-0acd0e9959fd850223ba1212a5a4776f3cbf40bf.tar.gz
Map: fix terrainBonus
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)