From 8c090b9fa905d6e8e44ab1c5e0f8b5fcea4a0376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Oct 2014 12:26:17 +0100 Subject: Map: fix typo, activated pawns must call attack(target) --- core/src/ch/asynk/tankontank/game/Map.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 2d1c677..4f876b0 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -191,8 +191,10 @@ public abstract class Map extends Board addAnimation(seq); - for (Pawn p : activatedPawns) - pawn.attack(target); + for (Pawn p : activatedPawns) { + p.attack(target); + System.err.println(pawn); + } if ((activatedPawns.size() == 1) && pawn.isA(Unit.UnitType.AT_GUN) && target.isHardTarget()) activatedPawns.clear(); -- cgit v1.1-2-g2b99