From 1361be5d5c6f8a5c3feb09c194d20c8cf500c2de Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 9 Feb 2012 22:44:28 +0000 Subject: [PATCH] "The World Ahead" --- .../lotro/cards/set17/elven/Card17_013.java | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/elven/Card17_013.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/elven/Card17_013.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/elven/Card17_013.java new file mode 100644 index 000000000..b5fada034 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/elven/Card17_013.java @@ -0,0 +1,62 @@ +package com.gempukku.lotro.cards.set17.elven; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.filters.Filters; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.actions.RequiredTriggerAction; +import com.gempukku.lotro.logic.effects.AddThreatsEffect; +import com.gempukku.lotro.logic.effects.ChooseAndHealCharactersEffect; +import com.gempukku.lotro.logic.effects.DrawCardsEffect; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Rise of Saruman + * Side: Free + * Culture: Elven + * Twilight Cost: 5 + * Type: Condition • Support Area + * Game Text: To play, spot an Elf. Each time the fellowship moves to a region one site, add a threat. Each time + * the fellowship moves to a region two site, heal an Elf. Each time the fellowship moves to a region three site, + * draw a card. + */ +public class Card17_013 extends AbstractPermanent { + public Card17_013() { + super(Side.FREE_PEOPLE, 5, CardType.CONDITION, Culture.ELVEN, Zone.SUPPORT, "The World Ahead"); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) { + return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile) + && PlayConditions.canSpot(game, Race.ELF); + } + + @Override + public List getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (TriggerConditions.movesTo(game, effectResult, Filters.region(1))) { + RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new AddThreatsEffect(self.getOwner(), self, 1)); + return Collections.singletonList(action); + } + if (TriggerConditions.movesTo(game, effectResult, Filters.region(2))) { + RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new ChooseAndHealCharactersEffect(action, self.getOwner(), Race.ELF)); + return Collections.singletonList(action); + } + if (TriggerConditions.movesTo(game, effectResult, Filters.region(3))) { + RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new DrawCardsEffect(action, self.getOwner(), 1)); + return Collections.singletonList(action); + } + return null; + } +}