From c968faf4683610917a2184c827833cbd4ebcb2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 4 Jan 2016 18:59:21 +0100 Subject: Map: fix call getDefense( defender.tile ) --- core/src/ch/asynk/rustanddust/game/Map.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1-2-g2b99