From 0acd0e9959fd850223ba1212a5a4776f3cbf40bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 22 Nov 2014 12:42:43 +0100 Subject: Map: fix terrainBonus --- core/src/ch/asynk/tankontank/game/Map.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.1-2-g2b99