From 5e8e82ddd8b461013b90bb4681d320917d33b434 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Mon, 17 Oct 2011 13:02:43 +0000 Subject: [PATCH] "Fury of the White Raider" --- .../lotro/cards/set5/gandalf/Card5_018.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/gandalf/Card5_018.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/gandalf/Card5_018.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/gandalf/Card5_018.java new file mode 100644 index 000000000..106b522d0 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/gandalf/Card5_018.java @@ -0,0 +1,43 @@ +package com.gempukku.lotro.cards.set5.gandalf; + +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.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.common.*; +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.ChooseAndWoundCharactersEffect; + +/** + * Set: Battle of Helm's Deep + * Side: Free + * Culture: Gandalf + * Twilight Cost: 3 + * Type: Event + * Game Text: Spell. Maneuver: Spot 3 twilight tokens and exert Gandalf to wound a minion twice. + */ +public class Card5_018 extends AbstractEvent { + public card5_018() { + super(Side.FREE_PEOPLE, 3, Culture.GANDALF, "Fury of the White Raider", Phase.MANEUVER); + addKeyword(Keyword.SPELL); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + return super.checkPlayRequirements(playerId, game, self, twilightModifier) + && PlayConditions.canExert(self, game, Filters.name("Gandalf")) + && game.getGameState().getTwilightPool() >= 3; + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + PlayEventAction action = new PlayEventAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.name("Gandalf"))); + action.appendEffect( + new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, 2, CardType.MINION)); + return action; + } +}