"Search Far and Wide"

This commit is contained in:
marcins78@gmail.com
2011-10-06 18:29:02 +00:00
parent 25f8b94e58
commit 9434c4702f

View File

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