From 77b6606531cd54dda42c65ffbb163f06d7bab879 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Fri, 10 Feb 2012 12:10:17 +0000 Subject: [PATCH] "The Sap is in the Bough" --- .../lotro/cards/set17/gandalf/Card17_025.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/gandalf/Card17_025.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/gandalf/Card17_025.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/gandalf/Card17_025.java new file mode 100644 index 000000000..95adb7dca --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/gandalf/Card17_025.java @@ -0,0 +1,43 @@ +package com.gempukku.lotro.cards.set17.gandalf; + +import com.gempukku.lotro.cards.AbstractEvent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.actions.PlayEventAction; +import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect; +import com.gempukku.lotro.cards.modifiers.evaluator.ConditionEvaluator; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.effects.ChooseAndDiscardCardsFromHandEffect; +import com.gempukku.lotro.logic.modifiers.SpotCondition; + +/** + * Set: Rise of Saruman + * Side: Free + * Culture: Gandalf + * Twilight Cost: 2 + * Type: Event • Skirmish + * Game Text: Discard a companion from hand to make a [GANDALF] companion strength +3 (or +4 if you can spot 3 Ents). + */ +public class Card17_025 extends AbstractEvent { + public Card17_025() { + super(Side.FREE_PEOPLE, 2, Culture.GANDALF, "The Sap is in the Bough", Phase.SKIRMISH); + } + + @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.canDiscardCardsFromHandToPlay(self, game, playerId, 1, CardType.COMPANION); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + action.appendCost( + new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 1, CardType.COMPANION)); + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, + new ConditionEvaluator(3, 4, new SpotCondition(3, Race.ENT)), Culture.GANDALF, CardType.COMPANION)); + return action; + } +}