diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/men/Card13_094.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/men/Card13_094.java new file mode 100644 index 000000000..0560708b5 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/men/Card13_094.java @@ -0,0 +1,69 @@ +package com.gempukku.lotro.cards.set13.men; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.*; +import com.gempukku.lotro.cards.modifiers.ArcheryTotalModifier; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.actions.OptionalTriggerAction; +import com.gempukku.lotro.logic.actions.RequiredTriggerAction; +import com.gempukku.lotro.logic.timing.Effect; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; + +/** + * Set: Bloodlines + * Side: Shadow + * Culture: Men + * Twilight Cost: 0 + * Type: Condition • Support Area + * Game Text: When you play this, add a [MEN] token here for each [MEN] archer you spot. At the start of the archery + * phase, you may discard this condition from play or remove 2 tokens from here to make the minion archery total +1. + */ +public class Card13_094 extends AbstractPermanent { + public Card13_094() { + super(Side.SHADOW, 0, CardType.CONDITION, Culture.MEN, Zone.SUPPORT, "Howdah"); + } + + @Override + public List getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, final PhysicalCard self) { + if (TriggerConditions.played(game, effectResult, self)) { + final RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new ForEachYouSpotEffect(self.getOwner(), Culture.MEN, Keyword.ARCHER) { + @Override + protected void spottedCards(int spotCount) { + if (spotCount > 0) + action.appendEffect( + new AddTokenEffect(self, self, Token.MEN, spotCount)); + } + }); + return Collections.singletonList(action); + } + return null; + } + + @Override + public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (TriggerConditions.startOfPhase(game, effectResult, Phase.ARCHERY)) { + OptionalTriggerAction action = new OptionalTriggerAction(self); + List possibleCosts = new LinkedList(); + possibleCosts.add( + new RemoveTokenEffect(self, self, Token.MEN, 2)); + possibleCosts.add( + new SelfDiscardEffect(self)); + action.appendCost( + new ChoiceEffect(action, playerId, possibleCosts)); + action.appendEffect( + new AddUntilEndOfPhaseModifierEffect( + new ArcheryTotalModifier(self, Side.SHADOW, 1), Phase.ARCHERY)); + return Collections.singletonList(action); + } + return null; + } +}