diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/gondor/Card1_089.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/gondor/Card1_089.java new file mode 100644 index 000000000..a52b68a40 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/gondor/Card1_089.java @@ -0,0 +1,53 @@ +package com.gempukku.lotro.cards.set1.gondor; + +import com.gempukku.lotro.cards.AbstractCompanion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.AddUntilStartOfPhaseModifierEffect; +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.Signet; +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.DefaultCostToEffectAction; +import com.gempukku.lotro.logic.modifiers.KeywordModifier; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Fellowship of the Ring + * Side: Free + * Culture: Gondor + * Twilight Cost: 4 + * Type: Companion • Man + * Strength: 8 + * Vitality: 4 + * Resistance: 6 + * Signet: Gandalf + * Game Text: Ranger. Maneuver: Exert Aragorn to make him defender +1 until the regroup phase. + */ +public class Card1_089 extends AbstractCompanion { + public Card1_089() { + super(4, 8, 4, Culture.GONDOR, Keyword.MAN, Signet.GANDALF, "Aragorn", true); + addKeyword(Keyword.RANGER); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.MANEUVER, self) + && PlayConditions.canExert(game.getGameState(), game.getModifiersQuerying(), self)) { + DefaultCostToEffectAction action = new DefaultCostToEffectAction(self, Keyword.MANEUVER, "Exert Aragorn to make him defender +1 until the regroup phase."); + action.addCost( + new ExertCharacterEffect(self)); + action.addEffect( + new AddUntilStartOfPhaseModifierEffect( + new KeywordModifier(self, Filters.sameCard(self), Keyword.DEFENDER), Phase.REGROUP)); + return Collections.singletonList(action); + } + return null; + } +}