"Where Has Grima Stowed It?"

This commit is contained in:
marcins78@gmail.com
2011-10-11 11:08:12 +00:00
parent 7726b06c7d
commit f60c24f535

View File

@@ -0,0 +1,46 @@
package com.gempukku.lotro.cards.set4.isengard;
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.ChooseAndDiscardCardsFromPlayEffect;
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;
/**
* Set: The Two Towers
* Side: Shadow
* Culture: Isengard
* Twilight Cost: 2
* Type: Event
* Game Text: Maneuver: Spot Grima to discard a possession borne by an ally or unbound companion.
*/
public class Card4_214 extends AbstractEvent {
public Card4_214() {
super(Side.SHADOW, Culture.ISENGARD, "Where Has Grima Stowed It?", Phase.MANEUVER);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
&& PlayConditions.canSpot(game, Filters.name("Grima"));
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Filters.type(CardType.POSSESSION), Filters.attachedTo(Filters.or(Filters.type(CardType.ALLY), Filters.unboundCompanion()))));
return action;
}
@Override
public int getTwilightCost() {
return 2;
}
}