diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-22 12:42:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-22 12:42:43 +0100 |
commit | 0acd0e9959fd850223ba1212a5a4776f3cbf40bf (patch) | |
tree | 9e8c3b008f36304e555678c08b7e243e33abde50 | |
parent | e8da76fb808ce27ccad32982ef4f48b482c28789 (diff) | |
download | RustAndDust-0acd0e9959fd850223ba1212a5a4776f3cbf40bf.zip RustAndDust-0acd0e9959fd850223ba1212a5a4776f3cbf40bf.tar.gz |
Map: fix terrainBonus
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 2 |
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) |