diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-04 18:59:21 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-04 18:59:21 +0100 |
commit | c968faf4683610917a2184c827833cbd4ebcb2ee (patch) | |
tree | f535956c90ffd7df131dc394eefad99074025138 /core/src | |
parent | 0b6b4bc5e3d7ebb6cc276f4d558aa1b7b8413a44 (diff) | |
download | RustAndDust-c968faf4683610917a2184c827833cbd4ebcb2ee.zip RustAndDust-c968faf4683610917a2184c827833cbd4ebcb2ee.tar.gz |
Map: fix call getDefense( defender.tile )
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Map.java | 2 |
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; |