"Deep in Thought"

This commit is contained in:
marcins78@gmail.com
2011-09-30 13:10:58 +00:00
parent 6e1445b62c
commit 0889a067ab
2 changed files with 48 additions and 2 deletions

View File

@@ -28,8 +28,8 @@ import java.util.List;
* Game Text: Plays to your support area. Each time an opponent draws a card (or takes a card into hand) during
* the Shadow phase, you may remove (1). Maneuver: Exert Gandalf to wound Saruman twice.
*/
public class Card2_029 extends AbstractPermanent {
public Card2_029() {
public class Card3_029 extends AbstractPermanent {
public Card3_029() {
super(Side.FREE_PEOPLE, 1, CardType.CONDITION, Culture.GANDALF, Zone.FREE_SUPPORT, "Betrayal of Isengard");
}

View File

@@ -0,0 +1,46 @@
package com.gempukku.lotro.cards.set3.gandalf;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.actions.PlayEventAction;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Phase;
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.DiscardCardsFromPlayEffect;
/**
* Set: Realms of Elf-lords
* Side: Free
* Culture: Gandalf
* Twilight Cost: 4
* Type: Event
* Game Text: Spell. Maneuver: Spot Gandalf and 4 twilight tokens to discard all Shadow conditions.
*/
public class Card3_030 extends AbstractEvent {
public Card3_030() {
super(Side.FREE_PEOPLE, Culture.GANDALF, "Deep in Thought", Phase.MANEUVER);
}
@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.name("Gandalf"))
&& game.getGameState().getTwilightPool() >= 4;
}
@Override
public int getTwilightCost() {
return 4;
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new DiscardCardsFromPlayEffect(self, Filters.and(Filters.side(Side.SHADOW), Filters.type(CardType.CONDITION))));
return action;
}
}