From b3a4d0037c53bc2e7b06c83bb058b77ffd89cb97 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 7 Feb 2012 12:49:43 +0000 Subject: [PATCH] "Violent Hurl" --- .../cards/set15/uruk_hai/Card15_179.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/uruk_hai/Card15_179.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/uruk_hai/Card15_179.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/uruk_hai/Card15_179.java new file mode 100644 index 000000000..1d7ae015c --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/uruk_hai/Card15_179.java @@ -0,0 +1,44 @@ +package com.gempukku.lotro.cards.set15.uruk_hai; + +import com.gempukku.lotro.cards.AbstractEvent; +import com.gempukku.lotro.cards.actions.PlayEventAction; +import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect; +import com.gempukku.lotro.logic.modifiers.KeywordModifier; +import com.gempukku.lotro.logic.modifiers.StrengthModifier; + +/** + * Set: The Hunters + * Side: Shadow + * Culture: Uruk-hai + * Twilight Cost: 1 + * Type: Event • Skirmish + * Game Text: Make an [URUK-HAI] minion strength +2 (and damage +1 if that minion is a hunter). + */ +public class Card15_179 extends AbstractEvent { + public Card15_179() { + super(Side.SHADOW, 1, Culture.URUK_HAI, "Violent Hurl", Phase.SKIRMISH); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, final PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + final PlayEventAction action = new PlayEventAction(self); + action.appendEffect( + new ChooseActiveCardEffect(self, playerId, "Choose an URUK_HAI minion", Culture.URUK_HAI, CardType.MINION) { + @Override + protected void cardSelected(LotroGame game, PhysicalCard card) { + action.appendEffect( + new AddUntilEndOfPhaseModifierEffect( + new StrengthModifier(self, card, 2), Phase.SKIRMISH)); + if (game.getModifiersQuerying().hasKeyword(game.getGameState(), card, Keyword.HUNTER)) + action.appendEffect( + new AddUntilEndOfPhaseModifierEffect( + new KeywordModifier(self, card, Keyword.DAMAGE, 1), Phase.SKIRMISH)); + } + }); + return action; + } +}