This commit is contained in:
marcins78
2013-03-19 11:07:41 +00:00
parent 834d8c1168
commit 08b5089140
2 changed files with 9 additions and 26 deletions

View File

@@ -294,7 +294,7 @@ var set20 = {
'20_293': 'http://lotrtcg.org/coreset/ringwraith/itwantstobefound.png', '20_293': 'http://lotrtcg.org/coreset/ringwraith/itwantstobefound.png',
'20_294': 'http://lotrtcg.org/coreset/ringwraith/liftingtheveil.png', '20_294': 'http://lotrtcg.org/coreset/ringwraith/liftingtheveil.png',
'20_295': 'http://lotrtcg.org/coreset/ringwraith/morgulblade.png', '20_295': 'http://lotrtcg.org/coreset/ringwraith/morgulblade.png',
'20_296': 'http://lotrtcg.org/coreset/ringwraith/nineformortalmen.png', '20_296': 'http://lotrtcg.org/coreset/ringwraith/nineformortalmen(r1).png',
'20_297': 'http://lotrtcg.org/coreset/ringwraith/ominouslandscape.png', '20_297': 'http://lotrtcg.org/coreset/ringwraith/ominouslandscape.png',
'20_298': 'http://lotrtcg.org/coreset/ringwraith/thepalebladew.png', '20_298': 'http://lotrtcg.org/coreset/ringwraith/thepalebladew.png',
'20_299': 'http://lotrtcg.org/coreset/ringwraith/petrifyingfear.png', '20_299': 'http://lotrtcg.org/coreset/ringwraith/petrifyingfear.png',

View File

@@ -4,8 +4,6 @@ import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions; import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions; import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.actions.PlayPermanentAction; import com.gempukku.lotro.cards.actions.PlayPermanentAction;
import com.gempukku.lotro.cards.effects.ChoiceEffect;
import com.gempukku.lotro.cards.effects.SpotEffect;
import com.gempukku.lotro.cards.effects.choose.*; import com.gempukku.lotro.cards.effects.choose.*;
import com.gempukku.lotro.common.*; import com.gempukku.lotro.common.*;
import com.gempukku.lotro.filters.Filters; import com.gempukku.lotro.filters.Filters;
@@ -17,16 +15,16 @@ import com.gempukku.lotro.logic.timing.Action;
import com.gempukku.lotro.logic.timing.Effect; import com.gempukku.lotro.logic.timing.Effect;
import java.util.Collections; import java.util.Collections;
import java.util.LinkedList;
import java.util.List; import java.util.List;
/** /**
* 0 * 0
* •Nine for Mortal Men * •Nine for Mortal Men
* Ringwraith Artifact • Support Area * Artifact • Support Area
* To play, exert a Nazgul (or spot The Witch-king). * 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. * Response: If a Nazgul is about to take a wound, stack a [Ringwraith] card from hand here to prevent that wound.
* Shadow: Discard 2 cards stacked here to take a [Ringwraith] card from your discard pile into hand. * 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
*/ */
public class Card20_296 extends AbstractPermanent { public class Card20_296 extends AbstractPermanent {
public Card20_296() { public Card20_296() {
@@ -36,29 +34,14 @@ public class Card20_296 extends AbstractPermanent {
@Override @Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) { 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) return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile)
&& (PlayConditions.canSpot(game, Filters.witchKing) || PlayConditions.canExert(self, game, Race.NAZGUL)); && PlayConditions.canExert(self, game, Race.NAZGUL);
} }
@Override @Override
public PlayPermanentAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { public PlayPermanentAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayPermanentAction action = super.getPlayCardAction(playerId, game, self, twilightModifier, ignoreRoamingPenalty); PlayPermanentAction action = super.getPlayCardAction(playerId, game, self, twilightModifier, ignoreRoamingPenalty);
List<Effect> possibleCosts = new LinkedList<Effect>();
possibleCosts.add(
new SpotEffect(1, Filters.witchKing) {
@Override
public String getText(LotroGame game) {
return "Spot The Witch-king";
}
});
possibleCosts.add(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.NAZGUL) {
@Override
public String getText(LotroGame game) {
return "Exert a Nazgul";
}
});
action.appendCost( action.appendCost(
new ChoiceEffect(action, playerId, possibleCosts)); new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.NAZGUL));
return action; return action;
} }
@@ -79,10 +62,10 @@ public class Card20_296 extends AbstractPermanent {
@Override @Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0) if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0)
&& game.getGameState().getStackedCards(self).size()>=2) { && game.getGameState().getStackedCards(self).size()>=3) {
ActivateCardAction action = new ActivateCardAction(self); ActivateCardAction action = new ActivateCardAction(self);
action.appendCost( action.appendCost(
new ChooseAndDiscardStackedCardsEffect(action, playerId, 2, 2, self, Filters.any)); new ChooseAndDiscardStackedCardsEffect(action, playerId, 3, 3, self, Filters.any));
action.appendEffect( action.appendEffect(
new ChooseAndPutCardFromDiscardIntoHandEffect(action, playerId, 1, 1, Culture.WRAITH)); new ChooseAndPutCardFromDiscardIntoHandEffect(action, playerId, 1, 1, Culture.WRAITH));
return Collections.singletonList(action); return Collections.singletonList(action);