From 4bbb02079cd6a81fb1e4f94953c5b03818df241e Mon Sep 17 00:00:00 2001 From: marcins78 Date: Mon, 25 Mar 2013 11:00:26 +0000 Subject: [PATCH] 20_296 --- .../src/main/web/js/gemp-019/set20.js | 2 +- .../lotro/cards/set20/wraith/Card20_296.java | 39 ++++++++----------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js index 321d4a481..09fbf3030 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js @@ -288,7 +288,7 @@ var set20 = { '20_293': 'http://lotrtcg.org/coreset/ringwraith/itwantstobefound.jpg', '20_294': 'http://lotrtcg.org/coreset/ringwraith/liftingtheveil.jpg', '20_295': 'http://lotrtcg.org/coreset/ringwraith/morgulblade.jpg', - '20_296': 'http://lotrtcg.org/coreset/ringwraith/nineformortalmen(r1).jpg', + '20_296': 'http://lotrtcg.org/coreset/ringwraith/nineformortalmen(r2).jpg', '20_297': 'http://lotrtcg.org/coreset/ringwraith/ominouslandscape.jpg', '20_298': 'http://lotrtcg.org/coreset/ringwraith/thepalebladew.jpg', '20_299': 'http://lotrtcg.org/coreset/ringwraith/petrifyingfear.jpg', diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/wraith/Card20_296.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/wraith/Card20_296.java index 9fea09670..a03492476 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/wraith/Card20_296.java +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/wraith/Card20_296.java @@ -3,8 +3,10 @@ package com.gempukku.lotro.cards.set20.wraith; import com.gempukku.lotro.cards.AbstractPermanent; import com.gempukku.lotro.cards.PlayConditions; import com.gempukku.lotro.cards.TriggerConditions; -import com.gempukku.lotro.cards.actions.PlayPermanentAction; -import com.gempukku.lotro.cards.effects.choose.*; +import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardStackedCardsEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndPreventCardEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndPutCardFromDiscardIntoHandEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndStackCardsFromHandEffect; import com.gempukku.lotro.common.*; import com.gempukku.lotro.filters.Filters; import com.gempukku.lotro.game.PhysicalCard; @@ -21,37 +23,23 @@ import java.util.List; * 0 * •Nine for Mortal Men * Artifact • Support Area - * To play, exert a Nazgul. - * Response: If a Nazgul is about to take a wound, stack a [Ringwraith] card from hand here to prevent that wound. - * Shadow: Discard 3 cards stacked here to take a [Ringwraith] card from your discard pile into hand. - * http://lotrtcg.org/coreset/ringwraith/nineformortalmen(r1).png + * Shadow: Stack a [Ringwraith] card here. + * Response: If a Nazgul is about to take a wound, discard a card stacked here to prevent that wound. + * Regroup: Discard 3 cards stacked here to take a [Ringwraith] card from your discard pile into hand. + * http://lotrtcg.org/coreset/ringwraith/nineformortalmen(r2).jpg */ public class Card20_296 extends AbstractPermanent { public Card20_296() { super(Side.SHADOW, 0, CardType.ARTIFACT, Culture.WRAITH, Zone.SUPPORT, "Nine for Mortal Men", null, true); } - @Override - public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) { - return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile) - && PlayConditions.canExert(self, game, Race.NAZGUL); - } - - @Override - public PlayPermanentAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { - PlayPermanentAction action = super.getPlayCardAction(playerId, game, self, twilightModifier, ignoreRoamingPenalty); - action.appendCost( - new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.NAZGUL)); - return action; - } - @Override public List getOptionalInPlayBeforeActions(String playerId, LotroGame game, Effect effect, PhysicalCard self) { if (TriggerConditions.isGettingWounded(effect, game, Race.NAZGUL) - && PlayConditions.hasCardInHand(game, playerId, 1, Culture.WRAITH)) { + && game.getGameState().getStackedCards(self).size()>0) { ActivateCardAction action = new ActivateCardAction(self); action.appendCost( - new ChooseAndStackCardsFromHandEffect(action, playerId, 1, 1, self, Culture.WRAITH)); + new ChooseAndDiscardStackedCardsEffect(action, playerId, 1, 1, self, Filters.any)); action.appendEffect( new ChooseAndPreventCardEffect(self, (WoundCharactersEffect) effect, playerId, "Choose Nazgul to prevent wound to", Race.NAZGUL)); return Collections.singletonList(action); @@ -62,6 +50,13 @@ public class Card20_296 extends AbstractPermanent { @Override protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0) + && PlayConditions.hasCardInHand(game, playerId, 1, Culture.WRAITH)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendEffect( + new ChooseAndStackCardsFromHandEffect(action, playerId, 1, 1, self, Culture.WRAITH)); + return Collections.singletonList(action); + } + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0) && game.getGameState().getStackedCards(self).size()>=3) { ActivateCardAction action = new ActivateCardAction(self); action.appendCost(