From beeb3a46781c90438f9eb05642787dfa6db4d0dd Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Sun, 12 Feb 2012 15:01:10 +0000 Subject: [PATCH] - "Aragorn, Wingfoot" now allows you to choose how many unbound hobbits you wish to spot. --- .../lotro/cards/set4/gondor/Card4_364.java | 18 ++++++++++++------ .../src/main/webapp/includes/changeLog.html | 1 + 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set4/gondor/Card4_364.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set4/gondor/Card4_364.java index 421abd6be..7c5252de6 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set4/gondor/Card4_364.java +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set4/gondor/Card4_364.java @@ -2,6 +2,7 @@ package com.gempukku.lotro.cards.set4.gondor; import com.gempukku.lotro.cards.AbstractCompanion; import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.ForEachYouSpotEffect; import com.gempukku.lotro.common.*; import com.gempukku.lotro.filters.Filters; import com.gempukku.lotro.game.PhysicalCard; @@ -32,14 +33,19 @@ public class Card4_364 extends AbstractCompanion { } @Override - public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + public List getOptionalAfterTriggers(final String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { if (effectResult.getType() == EffectResult.Type.WHEN_FELLOWSHIP_MOVES && PlayConditions.canSpot(game, Race.HOBBIT, Filters.unboundCompanion)) { - int count = Filters.countSpottable(game.getGameState(), game.getModifiersQuerying(), Race.HOBBIT, Filters.unboundCompanion); - OptionalTriggerAction action = new OptionalTriggerAction(self); - for (int i = 0; i < count; i++) - action.appendEffect( - new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.MINION)); + final OptionalTriggerAction action = new OptionalTriggerAction(self); + action.appendEffect( + new ForEachYouSpotEffect(playerId, Race.HOBBIT, Filters.unboundCompanion) { + @Override + protected void spottedCards(int spotCount) { + for (int i = 0; i < spotCount; i++) + action.appendEffect( + new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.MINION)); + } + }); return Collections.singletonList(action); } return null; diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html b/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html index 04ae4521d..b542f09b7 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html @@ -1,6 +1,7 @@
 12 Feb. 2012
 - "Tower Troll" now exerts itself twice to use the activated ability.
+- "Aragorn, Wingfoot" now allows you to choose how many unbound hobbits you wish to spot.
 
 11 Feb. 2012
 - "Hurried Barrows" now gives the bonus to companions only if they are mounted.