diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-29 12:26:17 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-29 12:26:17 +0100 |
commit | 8c090b9fa905d6e8e44ab1c5e0f8b5fcea4a0376 (patch) | |
tree | 9fc3147244bf81eda25097c430723a896efb21cf /core/src/ch/asynk/tankontank | |
parent | b4e5f726ca304b0c00021d7a108542a135666df4 (diff) | |
download | RustAndDust-8c090b9fa905d6e8e44ab1c5e0f8b5fcea4a0376.zip RustAndDust-8c090b9fa905d6e8e44ab1c5e0f8b5fcea4a0376.tar.gz |
Map: fix typo, activated pawns must call attack(target)
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 6 |
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(); |