"Put Forth His Strength"

This commit is contained in:
marcins78@gmail.com
2011-11-06 17:30:30 +00:00
parent 7269b04cc8
commit 36bf48dbd9
2 changed files with 54 additions and 0 deletions

View File

@@ -156,6 +156,10 @@ public class PlayConditions {
return game.getGameState().getThreats() >= count;
}
public static boolean canSpotBurdens(LotroGame game, int count) {
return game.getGameState().getBurdens() >= count;
}
public static boolean hasInitiative(LotroGame game, Side side) {
return game.getModifiersQuerying().hasInitiative(game.getGameState()) == side;
}

View File

@@ -0,0 +1,50 @@
package com.gempukku.lotro.cards.set7.wraith;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.common.*;
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.effects.CorruptRingBearerEffect;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Wraith
* Twilight Cost: 1
* Type: Condition • Support Area
* Game Text: To play, spot a Nazgul. Shadow: If you have initiative and there are 3 characters in the dead pile, spot
* 3 burdens, 3 threats and a Nazgul to corrupt the Ring-bearer.
*/
public class Card7_205 extends AbstractPermanent {
public Card7_205() {
super(Side.SHADOW, 1, CardType.CONDITION, Culture.WRAITH, Zone.SUPPORT, "Put Forth His Strength");
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
&& PlayConditions.canSpot(game, Race.NAZGUL);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0)
&& PlayConditions.hasInitiative(game, Side.SHADOW)
&& game.getGameState().getDeadPile(game.getGameState().getCurrentPlayerId()).size() >= 3
&& PlayConditions.canSpotThreat(game, 3)
&& PlayConditions.canSpotBurdens(game, 3)
&& PlayConditions.canSpot(game, Race.NAZGUL)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(
new CorruptRingBearerEffect());
return Collections.singletonList(action);
}
return null;
}
}