"Great Siege-towers"

This commit is contained in:
marcins78@gmail.com
2011-11-08 23:45:38 +00:00
parent 27b0a65751
commit 22e078f9f7
2 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,57 @@
package com.gempukku.lotro.cards.set7.sauron;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddTokenEffect;
import com.gempukku.lotro.cards.effects.CheckLimitEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromHandEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndRemoveTokensFromCardEffect;
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.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Sauron
* Twilight Cost: 1
* Type: Condition • Support Area
* Game Text: Engine. Shadow: Play a besieger to place a [SAURON] token here. Skirmish: Remove a [SAURON] token from
* a condition to make a [SAURON] Orc strength +1 (limit +2).
*/
public class Card7_281 extends AbstractPermanent {
public Card7_281() {
super(Side.SHADOW, 1, CardType.CONDITION, Culture.SAURON, Zone.SUPPORT, "Great Siege-towers");
addKeyword(Keyword.ENGINE);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0)
&& PlayConditions.canPlayFromHand(playerId, game, Keyword.BESIEGER)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndPlayCardFromHandEffect(playerId, game.getGameState().getHand(playerId), Keyword.BESIEGER));
action.appendEffect(
new AddTokenEffect(self, self, Token.SAURON));
return Collections.singletonList(action);
}
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0)
&& PlayConditions.canRemoveTokens(game, Token.SAURON, 1, CardType.CONDITION)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndRemoveTokensFromCardEffect(self, playerId, Token.SAURON, 1, CardType.CONDITION));
action.appendEffect(
new CheckLimitEffect(action, self, 2, Phase.SKIRMISH,
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 1, Culture.SAURON, Race.ORC)));
return Collections.singletonList(action);
}
return null;
}
}

View File

@@ -5,7 +5,7 @@ public enum Token {
DUNLAND(Culture.DUNLAND), DWARVEN(Culture.DWARVEN), ELVEN(Culture.ELVEN), GANDALF(Culture.GANDALF),
GONDOR(Culture.GONDOR), ISENGARD(Culture.ISENGARD), RAIDER(Culture.RAIDER), ROHAN(Culture.ROHAN), SHIRE(Culture.SHIRE),
WRAITH(Culture.WRAITH);
WRAITH(Culture.WRAITH), SAURON(Culture.SAURON);
private Culture _culture;