- "Aragorn, Wingfoot" now allows you to choose how many unbound hobbits you wish to spot.

This commit is contained in:
marcins78@gmail.com
2012-02-12 15:01:10 +00:00
parent 6dd4ae95ab
commit beeb3a4678
2 changed files with 13 additions and 6 deletions

View File

@@ -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<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
public List<OptionalTriggerAction> 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;

View File

@@ -1,6 +1,7 @@
<pre style="font-size:80%">
<b>12 Feb. 2012</b>
- "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.
<b>11 Feb. 2012</b>
- "Hurried Barrows" now gives the bonus to companions only if they are mounted.