diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/AbstractOldEvent.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/AbstractOldEvent.java index 6fe0bc17f..06957d915 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/AbstractOldEvent.java +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/AbstractOldEvent.java @@ -51,9 +51,7 @@ public abstract class AbstractOldEvent extends AbstractLotroCardBlueprint { @Override public final List getPhaseActions(String playerId, LotroGame game, PhysicalCard self) { if (_playableInPhases != null) { - Side side = self.getBlueprint().getSide(); - if ((side == Side.FREE_PEOPLE && PlayConditions.canPlayCardDuringPhase(game, _playableInPhases, self)) - || (side == Side.SHADOW && PlayConditions.canPlayCardDuringPhase(game, _playableInPhases, self))) { + if (PlayConditions.canPlayCardDuringPhase(game, _playableInPhases, self)) { if (checkPlayRequirements(playerId, game, self, 0)) return Collections.singletonList(getPlayCardAction(playerId, game, self, 0)); } diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gollum/Card7_061.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gollum/Card7_061.java new file mode 100644 index 000000000..aff5d3e2a --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gollum/Card7_061.java @@ -0,0 +1,78 @@ +package com.gempukku.lotro.cards.set7.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.choose.ChooseAndAddUntilEOPStrengthBonusEffect; +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.timing.AbstractSuccessfulEffect; +import com.gempukku.lotro.logic.timing.Action; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collection; +import java.util.Collections; +import java.util.List; + +/** + * Set: The Return of the King + * Side: Shadow + * Culture: Gollum + * Twilight Cost: 1 + * Type: Event • Skirmish + * Game Text: Spot Gollum or Smeagol to make a Nazgul, [SAURON] minion, or [GOLLUM] minion strength +2. If you have + * initiative, you may play this event from your discard pile; place it under your draw deck instead of discarding it. + */ +public class Card7_061 extends AbstractEvent { + public Card7_061() { + super(Side.SHADOW, 1, Culture.GOLLUM, "Hobbitses Are Dead", Phase.SKIRMISH); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + return super.checkPlayRequirements(playerId, game, self, twilightModifier) + && PlayConditions.canSpot(game, Filters.or(Filters.name("Gollum"), Filters.name("Smeagol"))); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + PlayEventAction action = new PlayEventAction(self); + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 2, + Filters.or(Race.NAZGUL, Filters.and(Culture.SAURON, CardType.MINION), Filters.and(Culture.GOLLUM, CardType.MINION)))); + return action; + } + + @Override + public List getPhaseActionsFromDiscard(String playerId, LotroGame game, final PhysicalCard self) { + if (PlayConditions.isPhase(game, Phase.SKIRMISH) + && PlayConditions.hasInitiative(game, Side.SHADOW) + && checkPlayRequirements(playerId, game, self, 0)) { + final PlayEventAction playCardAction = getPlayCardAction(playerId, game, self, 0); + playCardAction.appendEffect( + new AbstractSuccessfulEffect() { + @Override + public String getText(LotroGame game) { + return null; + } + + @Override + public Type getType() { + return null; + } + + @Override + public Collection playEffect(LotroGame game) { + playCardAction.skipDiscardPart(); + game.getGameState().putCardOnBottomOfDeck(self); + return null; + } + } + ); + return Collections.singletonList(playCardAction); + } + return null; + } +}