"Rohirrim Commoner"
This commit is contained in:
@@ -2,15 +2,13 @@ package com.gempukku.lotro.cards.set20.rohan;
|
|||||||
|
|
||||||
import com.gempukku.lotro.cards.AbstractAlly;
|
import com.gempukku.lotro.cards.AbstractAlly;
|
||||||
import com.gempukku.lotro.cards.PlayConditions;
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
import com.gempukku.lotro.cards.effects.SelfExertEffect;
|
|
||||||
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDiscardEffect;
|
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDiscardEffect;
|
||||||
import com.gempukku.lotro.common.Culture;
|
import com.gempukku.lotro.common.*;
|
||||||
import com.gempukku.lotro.common.Keyword;
|
import com.gempukku.lotro.filters.Filters;
|
||||||
import com.gempukku.lotro.common.Phase;
|
|
||||||
import com.gempukku.lotro.common.Race;
|
|
||||||
import com.gempukku.lotro.game.PhysicalCard;
|
import com.gempukku.lotro.game.PhysicalCard;
|
||||||
import com.gempukku.lotro.game.state.LotroGame;
|
import com.gempukku.lotro.game.state.LotroGame;
|
||||||
import com.gempukku.lotro.logic.actions.ActivateCardAction;
|
import com.gempukku.lotro.logic.actions.ActivateCardAction;
|
||||||
|
import com.gempukku.lotro.logic.effects.ChooseAndDiscardCardsFromHandEffect;
|
||||||
import com.gempukku.lotro.logic.timing.Action;
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@@ -22,7 +20,7 @@ import java.util.List;
|
|||||||
* Rohan Ally • Man • Edoras
|
* Rohan Ally • Man • Edoras
|
||||||
* 4 2
|
* 4 2
|
||||||
* Villager.
|
* Villager.
|
||||||
* Fellowship: Exert this ally to play a [Rohan] fortification from your discard pile.
|
* Fellowship: If you have Initiative, you may discard two cards from hand to play a [Rohan] fortification from your discard pile.
|
||||||
*/
|
*/
|
||||||
public class Card20_338 extends AbstractAlly {
|
public class Card20_338 extends AbstractAlly {
|
||||||
public Card20_338() {
|
public Card20_338() {
|
||||||
@@ -34,11 +32,12 @@ public class Card20_338 extends AbstractAlly {
|
|||||||
@Override
|
@Override
|
||||||
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
|
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
|
||||||
&& PlayConditions.canSelfExert(self, game)
|
&& PlayConditions.hasInitiative(game, Side.FREE_PEOPLE)
|
||||||
|
&& PlayConditions.canDiscardFromHand(game, playerId, 2, Filters.any)
|
||||||
&& PlayConditions.canPlayFromDiscard(playerId, game, Culture.ROHAN, Keyword.FORTIFICATION)) {
|
&& PlayConditions.canPlayFromDiscard(playerId, game, Culture.ROHAN, Keyword.FORTIFICATION)) {
|
||||||
ActivateCardAction action = new ActivateCardAction(self);
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
action.appendCost(
|
action.appendCost(
|
||||||
new SelfExertEffect(action, self));
|
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2));
|
||||||
action.appendEffect(
|
action.appendEffect(
|
||||||
new ChooseAndPlayCardFromDiscardEffect(playerId, game, Culture.ROHAN, Keyword.FORTIFICATION));
|
new ChooseAndPlayCardFromDiscardEffect(playerId, game, Culture.ROHAN, Keyword.FORTIFICATION));
|
||||||
return Collections.singletonList(action);
|
return Collections.singletonList(action);
|
||||||
|
|||||||
Reference in New Issue
Block a user