diff --git a/gemp-lotr/lotro-cards/src/main/java/com/gempukku/lotro/cards/set1/elven/Card1_056.java b/gemp-lotr/lotro-cards/src/main/java/com/gempukku/lotro/cards/set1/elven/Card1_056.java new file mode 100644 index 000000000..57b343016 --- /dev/null +++ b/gemp-lotr/lotro-cards/src/main/java/com/gempukku/lotro/cards/set1/elven/Card1_056.java @@ -0,0 +1,62 @@ +package com.gempukku.lotro.cards.set1.elven; + +import com.gempukku.lotro.cards.AbstractAlly; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.ExertCharacterEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Keyword; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Zone; +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.CostToEffectAction; +import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect; +import com.gempukku.lotro.logic.effects.WoundEffect; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.LinkedList; +import java.util.List; + +/** + * Set: The Fellowship of the Ring + * Side: Free + * Culture: Elven + * Twilight Cost: 2 + * Type: Ally • Home 6 • Elf + * Strength: 3 + * Vitality: 3 + * Site: 6 + * Game Text: Archer. Archery: Exert Orophin to wound an Uruk-hai. + */ +public class Card1_056 extends AbstractAlly { + public Card1_056() { + super(2, 6, 3, 3, Culture.ELVEN, "Orophin", "1_56", true); + addKeyword(Keyword.ELF); + addKeyword(Keyword.ARCHER); + } + + @Override + public List getPlayablePhaseActions(String playerId, LotroGame game, PhysicalCard self) { + List actions = new LinkedList(); + + appendPlayAllyActions(actions, game, self); + appendHealAllyActions(actions, game, self); + + if (game.getGameState().getCurrentPhase() == Phase.ARCHERY + && self.getZone() == Zone.FREE_SUPPORT + && PlayConditions.canExert(game.getGameState(), game.getModifiersQuerying(), self)) { + final CostToEffectAction action = new CostToEffectAction(self, "Exert to wound an Uruk-hai"); + action.addCost(new ExertCharacterEffect(self)); + action.addEffect( + new ChooseActiveCardEffect(playerId, "Choose an Uruk-hai", Filters.keyword(Keyword.URUK_HAI)) { + @Override + protected void cardSelected(LotroGame game, PhysicalCard urukHai) { + action.addEffect(new WoundEffect(urukHai)); + } + }); + } + + return actions; + } +}