From dd8adcc46400aeaf35b8ffe3cbfd4f2308cb120f Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 3 Jan 2012 12:58:24 +0000 Subject: [PATCH] "Wild Light of Madness" --- .../lotro/cards/set13/gollum/Card13_058.java | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/gollum/Card13_058.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/gollum/Card13_058.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/gollum/Card13_058.java new file mode 100644 index 000000000..7c902fe23 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/gollum/Card13_058.java @@ -0,0 +1,57 @@ +package com.gempukku.lotro.cards.set13.gollum; + +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.AddBurdenEffect; +import com.gempukku.lotro.cards.effects.ChoiceEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +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.timing.Effect; + +import java.util.LinkedList; +import java.util.List; + +/** + * Set: Bloodlines + * Side: Shadow + * Culture: Gollum + * Twilight Cost: 1 + * Type: Event • Shadow + * Game Text: Spot Gollum to make the Free Peoples player choose to either add a burden or exert a companion. + */ +public class Card13_058 extends AbstractEvent { + public Card13_058() { + super(Side.SHADOW, 1, Culture.GOLLUM, "Wild Light of Madness", Phase.SHADOW); + } + + @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, Filters.gollum); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + List possibleEffects = new LinkedList(); + possibleEffects.add( + new AddBurdenEffect(self, 1)); + possibleEffects.add( + new ChooseAndExertCharactersEffect(action, game.getGameState().getCurrentPlayerId(), 1, 1, CardType.COMPANION) { + @Override + public String getText(LotroGame game) { + return "Exert a companion"; + } + }); + action.appendEffect( + new ChoiceEffect(action, game.getGameState().getCurrentPlayerId(), possibleEffects)); + return action; + } +}