summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-05 14:40:05 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-05 14:40:05 +0100
commit41720ef975558b227e04c880a659a1b243731542 (patch)
tree9abc5dc790041da1537ea7812addcbb0a99bde65
parent40eec61bb4188cc87964e0af9cb0cf16bba7ac96 (diff)
downloadRustAndDust-41720ef975558b227e04c880a659a1b243731542.zip
RustAndDust-41720ef975558b227e04c880a659a1b243731542.tar.gz
Map: add comment for special AT_GUN -> no AP spent case
-rw-r--r--core/src/ch/asynk/rustanddust/game/Map.java1
1 files changed, 1 insertions, 0 deletions
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();