From f2b7a04365961ac90145985ef960d4434f553eeb Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 17 Nov 2011 11:11:30 +0000 Subject: [PATCH] "Under Foot" --- .../lotro/cards/set10/raider/Card10_051.java | 3 +- .../lotro/cards/set10/raider/Card10_052.java | 55 +++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set10/raider/Card10_052.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set10/raider/Card10_051.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set10/raider/Card10_051.java index bf33f20d8..5e9275326 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set10/raider/Card10_051.java +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set10/raider/Card10_051.java @@ -35,7 +35,8 @@ public class Card10_051 extends AbstractResponseEvent { @Override public List getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { if (PlayConditions.played(game, effectResult, CardType.POSSESSION, Side.FREE_PEOPLE) - && PlayConditions.canSpot(game, Culture.RAIDER)) { + && PlayConditions.canSpot(game, Culture.RAIDER) + && checkPlayRequirements(playerId, game, self, 0, false)) { PlayCardResult playResult = (PlayCardResult) effectResult; final PhysicalCard playedCard = playResult.getPlayedCard(); PlayEventAction action = new PlayEventAction(self); diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set10/raider/Card10_052.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set10/raider/Card10_052.java new file mode 100644 index 000000000..383622c4b --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set10/raider/Card10_052.java @@ -0,0 +1,55 @@ +package com.gempukku.lotro.cards.set10.raider; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.ReconcileHandEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect; +import com.gempukku.lotro.common.*; +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.effects.DiscardCardsFromPlayEffect; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Mount Doom + * Side: Shadow + * Culture: Raider + * Twilight Cost: 1 + * Type: Condition • Support Area + * Game Text: Shadow: If you have initiative, spot a [RAIDER] Man and discard this condition to reconcile your hand. + * Skirmish: Discard this condition to make a [RAIDER] Man strength +2. + */ +public class Card10_052 extends AbstractPermanent { + public Card10_052() { + super(Side.SHADOW, 1, CardType.CONDITION, Culture.RAIDER, Zone.SUPPORT, "Under Foot", true); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0) + && PlayConditions.hasInitiative(game, Side.SHADOW) + && PlayConditions.canSpot(game, Culture.RAIDER, Race.MAN) + && PlayConditions.canSelfDiscard(self, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new DiscardCardsFromPlayEffect(self, self)); + action.appendEffect( + new ReconcileHandEffect(playerId)); + return Collections.singletonList(action); + } + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0) + && PlayConditions.canSelfDiscard(self, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new DiscardCardsFromPlayEffect(self, self)); + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 2, Culture.RAIDER, Race.MAN)); + return Collections.singletonList(action); + } + return null; + } +}