From 98fcbe420c69eea361bb4725b676af9bc8fdffc3 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Sun, 11 Mar 2012 17:21:36 +0000 Subject: [PATCH] - "Urgency" now has the activated ability to discard itself to add +1 strength. --- .../cards/set19/isengard/Card19_017.java | 19 +++++++++++++++++++ .../src/main/webapp/includes/changeLog.html | 1 + 2 files changed, 20 insertions(+) diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set19/isengard/Card19_017.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set19/isengard/Card19_017.java index ace23721b..e12c44897 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set19/isengard/Card19_017.java +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set19/isengard/Card19_017.java @@ -1,13 +1,18 @@ package com.gempukku.lotro.cards.set19.isengard; import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.SelfDiscardEffect; +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.actions.ActivateCardAction; import com.gempukku.lotro.logic.actions.RequiredTriggerAction; import com.gempukku.lotro.logic.effects.AddTwilightEffect; +import com.gempukku.lotro.logic.timing.Action; import com.gempukku.lotro.logic.timing.EffectResult; import java.util.Collections; @@ -39,4 +44,18 @@ public class Card19_017 extends AbstractPermanent { } return null; } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0) + && PlayConditions.canSelfDiscard(self, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new SelfDiscardEffect(self)); + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 1, CardType.MINION, Filters.not(Culture.WRAITH))); + return Collections.singletonList(action); + } + return null; + } } diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html b/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html index 8379997af..b786b5029 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html @@ -1,6 +1,7 @@
 11 Mar. 2012
 - "Harry Goatleaf" is site 2 now.
+- "Urgency" now has the activated ability to discard itself to add +1 strength. 
 
 10 Mar. 2012
 - "Asfaloth" no longer discard itself when attached to Ally and fellowship is at an Underground site.