From 0738b628328fb28fdb5f51bdbf663d7509451f60 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Wed, 25 Jan 2012 18:05:38 +0000 Subject: [PATCH] "Smeagol" --- .../lotro/cards/set15/gollum/Card15_049.java | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/gollum/Card15_049.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/gollum/Card15_049.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/gollum/Card15_049.java new file mode 100644 index 000000000..c420804c0 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/gollum/Card15_049.java @@ -0,0 +1,71 @@ +package com.gempukku.lotro.cards.set15.gollum; + +import com.gempukku.lotro.cards.AbstractCompanion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.actions.PlayPermanentAction; +import com.gempukku.lotro.cards.effects.AddBurdenEffect; +import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.cards.modifiers.OverwhelmedByMultiplierModifier; +import com.gempukku.lotro.cards.modifiers.ResistanceModifier; +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.actions.ActivateCardAction; +import com.gempukku.lotro.logic.modifiers.Modifier; +import com.gempukku.lotro.logic.modifiers.StrengthModifier; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Hunters + * Side: Free + * Culture: Gollum + * Twilight Cost: 0 + * Type: Companion + * Strength: 3 + * Vitality: 4 + * Resistance: 5 + * Game Text: Ring-bound. To play, add a burden. Each Ring-bound companion is resistance +1. + * Skirmish: Exert 2 Ring-bound Hobbits to make Smeagol strength +1 and prevent him from being overwhelmed unless his + * strength is tripled. + */ +public class Card15_049 extends AbstractCompanion { + public Card15_049() { + super(0, 3, 4, 5, Culture.GOLLUM, null, null, "Smeagol", true); + addKeyword(Keyword.RING_BOUND); + } + + @Override + public PlayPermanentAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + final PlayPermanentAction playCardAction = super.getPlayCardAction(playerId, game, self, twilightModifier, ignoreRoamingPenalty); + playCardAction.appendCost( + new AddBurdenEffect(self, 1)); + return playCardAction; + } + + @Override + public Modifier getAlwaysOnModifier(PhysicalCard self) { + return new ResistanceModifier(self, Filters.and(CardType.COMPANION, Keyword.RING_BOUND), 1); + } + + @Override + protected List getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self) + && PlayConditions.canExert(self, game, 1, 2, Race.HOBBIT, Keyword.RING_BOUND)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 2, 2, 1, Race.HOBBIT, Keyword.RING_BOUND)); + action.appendEffect( + new AddUntilEndOfPhaseModifierEffect( + new StrengthModifier(self, self, 1), Phase.SKIRMISH)); + action.appendEffect( + new AddUntilEndOfPhaseModifierEffect( + new OverwhelmedByMultiplierModifier(self, self, 3), Phase.SKIRMISH)); + return Collections.singletonList(action); + } + return null; + } +}