From ae0393992ee1a02178a0cb9a0dd722d320a026a4 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 13 Dec 2011 22:56:42 +0000 Subject: [PATCH] "Broken in Defeat" --- .../cards/set12/uruk_hai/Card12_139.java | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/uruk_hai/Card12_139.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/uruk_hai/Card12_139.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/uruk_hai/Card12_139.java new file mode 100644 index 000000000..0c07b29ce --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/uruk_hai/Card12_139.java @@ -0,0 +1,46 @@ +package com.gempukku.lotro.cards.set12.uruk_hai; + +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.OptionalEffect; +import com.gempukku.lotro.cards.effects.PutPlayedEventIntoHandEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect; +import com.gempukku.lotro.common.CardType; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Side; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.GameUtils; + +/** + * Set: Black Rider + * Side: Shadow + * Culture: Uruk-hai + * Twilight Cost: 1 + * Type: Event • Skirmish + * Game Text: Make an [URUK-HAI] minion strength +2. Then you may spot 6 companions to return this event to your hand. + */ +public class Card12_139 extends AbstractEvent { + public Card12_139() { + super(Side.SHADOW, 1, Culture.URUK_HAI, "Broken in Defeat", Phase.SKIRMISH); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, final PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 2, Culture.URUK_HAI, CardType.MINION)); + if (PlayConditions.canSpot(game, 6, CardType.COMPANION)) + action.appendEffect( + new OptionalEffect(action, playerId, + new PutPlayedEventIntoHandEffect(action) { + @Override + public String getText(LotroGame game) { + return "Return " + GameUtils.getCardLink(self) + " to your hand"; + } + })); + return action; + } +}