From 0bbcd881dcbcaf67ffc56a271de26eb6d850c09a Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 12 Jan 2012 14:46:12 +0000 Subject: [PATCH] "Everything but My Bones" --- .../lotro/cards/set13/shire/Card13_146.java | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/shire/Card13_146.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/shire/Card13_146.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/shire/Card13_146.java new file mode 100644 index 000000000..b10870ee9 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/shire/Card13_146.java @@ -0,0 +1,56 @@ +package com.gempukku.lotro.cards.set13.shire; + +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.RemovePlayedEventFromGameEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndRemoveFromTheGameCardsInDiscardEffect; +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.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Bloodlines + * Side: Free + * Culture: Shire + * Twilight Cost: 2 + * Type: Event • Skirmish + * Game Text: You may remove from the game 4 other [SHIRE] cards in your discard pile to play this event from your + * discard pile. Then remove this event from the game. Make your Hobbit at a dwelling or forest site strength +3. + */ +public class Card13_146 extends AbstractEvent { + public Card13_146() { + super(Side.FREE_PEOPLE, 2, Culture.SHIRE, "Everything but My Bones", Phase.SKIRMISH); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + if (PlayConditions.location(game, Filters.or(Keyword.DWELLING, Keyword.FOREST))) + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect( + action, self, playerId, 3, Filters.owner(playerId), Race.HOBBIT)); + return action; + } + + @Override + public List getPhaseActionsFromDiscard(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.isPhase(game, Phase.SKIRMISH) + && PlayConditions.canPlayFromDiscard(playerId, game, self) + && PlayConditions.canRemoveFromDiscardToPlay(self, game, playerId, 4, Culture.SHIRE)) { + final PlayEventAction action = getPlayCardAction(playerId, game, self, 0, false); + action.appendCost( + new ChooseAndRemoveFromTheGameCardsInDiscardEffect(action, self, playerId, 4, 4, Culture.SHIRE)); + action.appendEffect( + new RemovePlayedEventFromGameEffect(action)); + return Collections.singletonList(action); + } + return null; + } +}