diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/elven/Card17_012.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/elven/Card17_012.java new file mode 100644 index 000000000..bf700971c --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/elven/Card17_012.java @@ -0,0 +1,67 @@ +package com.gempukku.lotro.cards.set17.elven; + +import com.gempukku.lotro.cards.AbstractCompanion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +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.ActivateCardAction; +import com.gempukku.lotro.logic.effects.AddThreatsEffect; +import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect; +import com.gempukku.lotro.logic.modifiers.KeywordModifier; +import com.gempukku.lotro.logic.modifiers.Modifier; +import com.gempukku.lotro.logic.modifiers.SpotCondition; +import com.gempukku.lotro.logic.modifiers.StrengthModifier; + +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; + +/** + * Set: Rise of Saruman + * Side: Free + * Culture: Elven + * Twilight Cost: 2 + * Type: Companion • Elf + * Strength: 6 + * Vitality: 3 + * Resistance: 6 + * Game Text: Hunter 1 (While skirmishing a non-hunter character, this character is strength +1.) While you can spot + * a wounded minion, Rumil is strength +1 and gains archer. Archery: Exert another [ELVEN] hunter and add a threat + * to wound a minion. + */ +public class Card17_012 extends AbstractCompanion { + public Card17_012() { + super(2, 6, 3, 6, Culture.ELVEN, Race.ELF, null, "Rumil", true); + addKeyword(Keyword.HUNTER, 1); + } + + @Override + public List getAlwaysOnModifiers(LotroGame game, PhysicalCard self) { + List modifiers = new LinkedList(); + modifiers.add( + new StrengthModifier(self, self, new SpotCondition(CardType.MINION, Filters.wounded), 1)); + modifiers.add( + new KeywordModifier(self, self, new SpotCondition(CardType.MINION, Filters.wounded), Keyword.ARCHER, 1)); + return modifiers; + } + + @Override + protected List getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ARCHERY, self) + && PlayConditions.canExert(self, game, Filters.not(self), Culture.ELVEN, Keyword.HUNTER) + && PlayConditions.canAddThreat(game, self, 1)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.not(self), Culture.ELVEN, Keyword.HUNTER)); + action.appendCost( + new AddThreatsEffect(playerId, self, 1)); + action.appendEffect( + new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.MINION)); + return Collections.singletonList(action); + } + return null; + } +}