From 851bd136d5bc8695e22b2791f3b7c9d0bafc74f6 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Mon, 12 Dec 2011 17:31:20 +0000 Subject: [PATCH] "Retribution" --- .../lotro/cards/set12/orc/Card12_101.java | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/orc/Card12_101.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/orc/Card12_101.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/orc/Card12_101.java new file mode 100644 index 000000000..a59c4c677 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/orc/Card12_101.java @@ -0,0 +1,60 @@ +package com.gempukku.lotro.cards.set12.orc; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.AddBurdenEffect; +import com.gempukku.lotro.cards.effects.SelfDiscardEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDiscardEffect; +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.actions.RequiredTriggerAction; +import com.gempukku.lotro.logic.timing.Action; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Black Rider + * Side: Shadow + * Culture: Orc + * Twilight Cost: 0 + * Type: Condition • Support Area + * Game Text: Each time an [ORC] minion bearing a weapon wins a skirmish, add a burden. Shadow: Discard this condition + * to play an [ORC] weapon from your discard pile. + */ +public class Card12_101 extends AbstractPermanent { + public Card12_101() { + super(Side.SHADOW, 0, CardType.CONDITION, Culture.ORC, Zone.SUPPORT, "Retribution", true); + } + + @Override + public List getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (TriggerConditions.winsSkirmish(game, effectResult, Culture.ORC, CardType.MINION, Filters.hasAttached(Filters.weapon))) { + RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new AddBurdenEffect(self, 1)); + return Collections.singletonList(action); + } + return null; + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0) + && PlayConditions.canSelfDiscard(self, game) + && PlayConditions.canPlayFromDiscard(playerId, game, Culture.ORC, Filters.weapon)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new SelfDiscardEffect(self)); + action.appendEffect( + new ChooseAndPlayCardFromDiscardEffect(playerId, game, Culture.ORC, Filters.weapon)); + return Collections.singletonList(action); + } + return null; + } +}