"Behold the White Rider"
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
package com.gempukku.lotro.cards.set4.gandalf;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractPermanent;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.AddTokenEffect;
|
||||||
|
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.actions.OptionalTriggerAction;
|
||||||
|
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
|
||||||
|
import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect;
|
||||||
|
import com.gempukku.lotro.logic.effects.WoundCharactersEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Two Towers
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Gandalf
|
||||||
|
* Twilight Cost: 2
|
||||||
|
* Type: Condition
|
||||||
|
* Game Text: Plays to your support area. Each time Gandalf wins a skirmish, you may place a [GANDALF] token here.
|
||||||
|
* Skirmish: Wound a minion skirmishing Gandalf for each [GANDALF] token here. Discard this condition.
|
||||||
|
*/
|
||||||
|
public class Card4_088 extends AbstractPermanent {
|
||||||
|
public Card4_088() {
|
||||||
|
super(Side.FREE_PEOPLE, 2, CardType.CONDITION, Culture.GANDALF, Zone.SUPPORT, "Behold the White Rider", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
|
if (PlayConditions.winsSkirmish(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.name("Gandalf"))) {
|
||||||
|
OptionalTriggerAction action = new OptionalTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new AddTokenEffect(self, self, Token.GANDALF));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Action> getExtraPhaseActions(String playerId, final LotroGame game, final PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self)) {
|
||||||
|
final ActivateCardAction action = new ActivateCardAction(self, Keyword.SKIRMISH);
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseActiveCardEffect(self, playerId, "Choose a minion", Filters.type(CardType.MINION), Filters.inSkirmishAgainst(Filters.name("Gandalf"))) {
|
||||||
|
@Override
|
||||||
|
protected void cardSelected(PhysicalCard card) {
|
||||||
|
int tokenCount = game.getGameState().getTokenCount(self, Token.GANDALF);
|
||||||
|
for (int i = 0; i < tokenCount; i++)
|
||||||
|
action.insertEffect(
|
||||||
|
new WoundCharactersEffect(self, card));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
action.appendEffect(
|
||||||
|
new DiscardCardsFromPlayEffect(self, self));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,5 +3,5 @@ package com.gempukku.lotro.common;
|
|||||||
public enum Token {
|
public enum Token {
|
||||||
BURDEN, WOUND,
|
BURDEN, WOUND,
|
||||||
|
|
||||||
DUNLAND, DWARVEN, ELVEN
|
DUNLAND, DWARVEN, ELVEN, GANDALF
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user