"Minas Morgul Answers"

This commit is contained in:
marcins78@gmail.com
2011-12-14 17:27:52 +00:00
parent 492403fac3
commit 6c7f1ee8ff

View File

@@ -0,0 +1,39 @@
package com.gempukku.lotro.cards.set12.wraith;
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.ChooseAndDiscardCardsFromPlayEffect;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
/**
* Set: Black Rider
* Side: Shadow
* Culture: Wraith
* Twilight Cost: 4
* Type: Event • Shadow
* Game Text: Toil 2. (For each [WRAITH] character you exert when playing this, its twilight cost is -2) Spot a Nazgul
* to discard a Free Peoples condition from play.
*/
public class Card12_167 extends AbstractEvent {
public Card12_167() {
super(Side.SHADOW, 4, Culture.WRAITH, "Minas Morgul Answers", Phase.SHADOW);
addKeyword(Keyword.TOIL, 2);
}
@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, Race.NAZGUL);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.CONDITION, Side.FREE_PEOPLE));
return action;
}
}