From 1e7b06648f2b96ca2ad0ae8d211648801144bd6e Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 3 Jan 2012 12:03:54 +0000 Subject: [PATCH] "Out of All Knowledge" --- .../lotro/cards/set13/gollum/Card13_054.java | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/gollum/Card13_054.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/gollum/Card13_054.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/gollum/Card13_054.java new file mode 100644 index 000000000..84d398f53 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set13/gollum/Card13_054.java @@ -0,0 +1,70 @@ +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.ChoiceEffect; +import com.gempukku.lotro.cards.effects.OptionalEffect; +import com.gempukku.lotro.cards.effects.ReinforceTokenEffect; +import com.gempukku.lotro.cards.effects.SpotEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Side; +import com.gempukku.lotro.common.Token; +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: Free + * Culture: Gollum + * Twilight Cost: 1 + * Type: Event • Skirmish + * Game Text: Spot Smeagol or exert Gollum to make Smeagol strength +2 and you may reinforce a [GOLLUM] token. + */ +public class Card13_054 extends AbstractEvent { + public Card13_054() { + super(Side.FREE_PEOPLE, 1, Culture.GOLLUM, "Out of All Knowledge", Phase.SKIRMISH); + } + + @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.smeagol) || PlayConditions.canExert(self, game, Filters.gollum)); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + List possibleCosts = new LinkedList(); + possibleCosts.add( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.gollum) { + @Override + public String getText(LotroGame game) { + return "Exert Gollum"; + } + }); + possibleCosts.add( + new SpotEffect(1, Filters.smeagol) { + @Override + public String getText(LotroGame game) { + return "Spot Smeagol"; + } + }); + action.appendCost( + new ChoiceEffect(action, playerId, possibleCosts)); + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 2, Filters.smeagol)); + action.appendEffect( + new OptionalEffect(action, playerId, + new ReinforceTokenEffect(self, playerId, Token.GOLLUM))); + return action; + } +}