"Last Days of My House"

This commit is contained in:
marcins78@gmail.com
2012-02-03 16:41:33 +00:00
parent 2cbb1d1c88
commit a3e260a0b6

View File

@@ -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;
}
}