"Attack on Helm's Deep"
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.gempukku.lotro.cards.set4.isengard;
|
||||
|
||||
import com.gempukku.lotro.cards.AbstractPermanent;
|
||||
import com.gempukku.lotro.cards.PlayConditions;
|
||||
import com.gempukku.lotro.cards.effects.*;
|
||||
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.timing.Action;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Set: The Two Towers
|
||||
* Side: Shadow
|
||||
* Culture: Isengard
|
||||
* Twilight Cost: 0
|
||||
* Type: Condition
|
||||
* Game Text: Plays to your support area. Shadow: Play an Uruk-hai to place an [ISENGARD] token on this card.
|
||||
* Regroup: Remove 3 [ISENGARD] tokens from this card and discard an Uruk-hai to take control of a site.
|
||||
*/
|
||||
public class Card4_137 extends AbstractPermanent {
|
||||
public Card4_137() {
|
||||
super(Side.SHADOW, 0, CardType.CONDITION, Culture.ISENGARD, Zone.SUPPORT, "Attack on Helm's Deep");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.SHADOW, self)
|
||||
&& Filters.filter(game.getGameState().getHand(playerId), game.getGameState(), game.getModifiersQuerying(), Filters.race(Race.URUK_HAI), Filters.playable(game)).size() > 0) {
|
||||
ActivateCardAction action = new ActivateCardAction(self, Keyword.FELLOWSHIP);
|
||||
action.appendCost(
|
||||
new ChooseAndPlayCardFromHandEffect(playerId, game.getGameState().getHand(playerId), Filters.race(Race.URUK_HAI)));
|
||||
action.appendEffect(
|
||||
new AddTokenEffect(self, self, Token.ISENGARD));
|
||||
return Collections.singletonList(action);
|
||||
}
|
||||
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.REGROUP, self)
|
||||
&& game.getGameState().getTokenCount(self, Token.ISENGARD) >= 3
|
||||
&& Filters.countActive(game.getGameState(), game.getModifiersQuerying(), Filters.race(Race.URUK_HAI)) > 0) {
|
||||
ActivateCardAction action = new ActivateCardAction(self, Keyword.REGROUP);
|
||||
action.appendCost(
|
||||
new RemoveTokenEffect(self, self, Token.ISENGARD, 3));
|
||||
action.appendCost(
|
||||
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Filters.race(Race.URUK_HAI)));
|
||||
action.appendEffect(
|
||||
new TakeControlOfASiteEffect(self, playerId));
|
||||
return Collections.singletonList(action);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -3,5 +3,6 @@ package com.gempukku.lotro.common;
|
||||
public enum Token {
|
||||
BURDEN, WOUND,
|
||||
|
||||
DUNLAND, DWARVEN, ELVEN, GANDALF, GONDOR
|
||||
DUNLAND, DWARVEN, ELVEN, GANDALF,
|
||||
GONDOR, ISENGARD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user