"Storming the Ramparts"

This commit is contained in:
marcins78@gmail.com
2011-12-12 17:44:44 +00:00
parent f95be86be8
commit 86619e775a

View File

@@ -0,0 +1,40 @@
package com.gempukku.lotro.cards.set12.orc;
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.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
/**
* Set: Black Rider
* Side: Shadow
* Culture: Orc
* Twilight Cost: 3
* Type: Event • Maneuver
* Game Text: Toil 2. (For each [ORC] character you exert when playing this, its twilight cost is -2) Spot an [ORC]
* minion to make the Free Peoples player discard one of his or her conditions from play.
*/
public class Card12_103 extends AbstractEvent {
public Card12_103() {
super(Side.SHADOW, 3, Culture.ORC, "Storming the Ramparts", Phase.MANEUVER);
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, Culture.ORC, CardType.MINION);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, game.getGameState().getCurrentPlayerId(), 1, 1, CardType.CONDITION, Filters.owner(game.getGameState().getCurrentPlayerId())));
return action;
}
}