summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-04 18:59:21 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-04 18:59:21 +0100
commitc968faf4683610917a2184c827833cbd4ebcb2ee (patch)
treef535956c90ffd7df131dc394eefad99074025138 /core
parent0b6b4bc5e3d7ebb6cc276f4d558aa1b7b8413a44 (diff)
downloadRustAndDust-c968faf4683610917a2184c827833cbd4ebcb2ee.zip
RustAndDust-c968faf4683610917a2184c827833cbd4ebcb2ee.tar.gz
Map: fix call getDefense( defender.tile )
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Map.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java
index fb08277..4484327 100644
--- a/core/src/ch/asynk/rustanddust/game/Map.java
+++ b/core/src/ch/asynk/rustanddust/game/Map.java
@@ -77,7 +77,7 @@ public abstract class Map extends Map4Commands
}
int cnt = activatedUnits.size();
- int def = e.defender.getDefense(e.attacker.getTile());
+ int def = e.defender.getDefense(e.defender.getTile());
int flk = (flankAttack ? Unit.FLANK_ATTACK_BONUS : 0);
int tdf = (terrainBonus ? e.defender.getTile().defense() : 0);
int wdf = 0;