summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-29 12:26:17 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-29 12:26:17 +0100
commit8c090b9fa905d6e8e44ab1c5e0f8b5fcea4a0376 (patch)
tree9fc3147244bf81eda25097c430723a896efb21cf /core
parentb4e5f726ca304b0c00021d7a108542a135666df4 (diff)
downloadRustAndDust-8c090b9fa905d6e8e44ab1c5e0f8b5fcea4a0376.zip
RustAndDust-8c090b9fa905d6e8e44ab1c5e0f8b5fcea4a0376.tar.gz
Map: fix typo, activated pawns must call attack(target)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java6
1 files 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();