From a3e260a0b65e59bb38ddc1f61e3f3f6a5801f8cd Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Fri, 3 Feb 2012 16:41:33 +0000 Subject: [PATCH] "Last Days of My House" --- .../lotro/cards/set15/rohan/Card15_132.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/rohan/Card15_132.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/rohan/Card15_132.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/rohan/Card15_132.java new file mode 100644 index 000000000..8fdf20589 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/rohan/Card15_132.java @@ -0,0 +1,40 @@ +package com.gempukku.lotro.cards.set15.rohan; + +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.ChooseAndPlayCardFromDeckEffect; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.filters.Filters; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; + +/** + * Set: The Hunters + * Side: Free + * Culture: Rohan + * Twilight Cost: 1 + * Type: Event • Fellowship + * Game Text: Spot 2 [ROHAN] Men (or 1 hunter [ROHAN] Man) to play a [ROHAN] companion or a [ROHAN] follower from your + * draw deck. + */ +public class Card15_132 extends AbstractEvent { + public Card15_132() { + super(Side.FREE_PEOPLE, 1, Culture.ROHAN, "Last Days of My House", Phase.FELLOWSHIP); + } + + @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.canSpot(game, 2, Culture.ROHAN, Race.MAN) + || PlayConditions.canSpot(game, Culture.ROHAN, Race.MAN, Keyword.HUNTER)); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + action.appendEffect( + new ChooseAndPlayCardFromDeckEffect(playerId, Culture.ROHAN, Filters.or(CardType.COMPANION, CardType.FOLLOWER))); + return action; + } +}