diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/elven/Card18_017.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/elven/Card18_017.java new file mode 100644 index 000000000..7f9c4cedc --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/elven/Card18_017.java @@ -0,0 +1,55 @@ +package com.gempukku.lotro.cards.set18.elven; + +import com.gempukku.lotro.cards.AbstractFollower; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.common.CardType; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Side; +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.OptionalTriggerAction; +import com.gempukku.lotro.logic.effects.AddTwilightEffect; +import com.gempukku.lotro.logic.effects.DrawCardsEffect; +import com.gempukku.lotro.logic.timing.Effect; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Treachery & Deceit + * Side: Free + * Culture: Elven + * Twilight Cost: 1 + * Type: Follower + * Resistance: +1 + * Game Text: Aid - (2). (At the start of the maneuver phase, you may add (2) to transfer this to a companion.) When you + * transfer this to an [ELVEN] companion, you may draw 3 cards. + */ +public class Card18_017 extends AbstractFollower { + public Card18_017() { + super(Side.FREE_PEOPLE, 1, 0, 0, 1, Culture.ELVEN, "Woodhall Elf", true); + } + + @Override + protected boolean canPayAidCost(LotroGame game, PhysicalCard self) { + return true; + } + + @Override + protected Effect getAidCost(LotroGame game, PhysicalCard self) { + return new AddTwilightEffect(self, 2); + } + + @Override + protected List getExtraOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (TriggerConditions.transferredCard(game, effectResult, self, null, Filters.and(Culture.ELVEN, CardType.COMPANION))) { + OptionalTriggerAction action = new OptionalTriggerAction(self); + action.appendEffect( + new DrawCardsEffect(action, playerId, 3)); + return Collections.singletonList(action); + } + return null; + } +}