From 41720ef975558b227e04c880a659a1b243731542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 5 Nov 2015 14:40:05 +0100 Subject: Map: add comment for special AT_GUN -> no AP spent case --- core/src/ch/asynk/rustanddust/game/Map.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java index 35497ff..dedbf23 100644 --- a/core/src/ch/asynk/rustanddust/game/Map.java +++ b/core/src/ch/asynk/rustanddust/game/Map.java @@ -567,6 +567,7 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS addAnimation(destroy); } + // do not consume action points if ((activatedUnits.size() == 1) && e.attacker.isA(Unit.UnitType.AT_GUN) && e.defender.isHardTarget()) activatedUnits.clear(); -- cgit v1.1-2-g2b99