diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set4/dwarven/Card4_056.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set4/dwarven/Card4_056.java new file mode 100644 index 000000000..e494fd862 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set4/dwarven/Card4_056.java @@ -0,0 +1,49 @@ +package com.gempukku.lotro.cards.set4.dwarven; + +import com.gempukku.lotro.cards.AbstractEvent; +import com.gempukku.lotro.cards.actions.PlayEventAction; +import com.gempukku.lotro.cards.effects.DiscardTopCardFromDeckEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Race; +import com.gempukku.lotro.common.Side; +import com.gempukku.lotro.filters.Filters; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.effects.DrawCardEffect; + +/** + * Set: The Two Towers + * Side: Free + * Culture: Dwarven + * Twilight Cost: 0 + * Type: Event + * Game Text: Fellowship: Spot a Dwarf and discard the top card of your draw deck to draw 2 cards. + */ +public class Card4_056 extends AbstractEvent { + public Card4_056() { + super(Side.FREE_PEOPLE, Culture.DWARVEN, "Search Far and Wide", Phase.FELLOWSHIP); + } + + @Override + public int getTwilightCost() { + return 0; + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + return super.checkPlayRequirements(playerId, game, self, twilightModifier) + && Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), Filters.race(Race.DWARF)) + && game.getGameState().getDeck(playerId).size() > 0; + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + PlayEventAction action = new PlayEventAction(self); + action.appendCost( + new DiscardTopCardFromDeckEffect(playerId)); + action.appendEffect( + new DrawCardEffect(playerId, 2)); + return action; + } +}