From 51b6d68e4b682b36b16e9bccb10ec786206eecca Mon Sep 17 00:00:00 2001 From: marcins78 Date: Wed, 6 Feb 2013 13:17:17 +0000 Subject: [PATCH] "Firefoot", "Trusted Steed" --- .../lotro/cards/set20/rohan/Card20_323.java | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/rohan/Card20_323.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/rohan/Card20_323.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/rohan/Card20_323.java new file mode 100644 index 000000000..d41eaca4a --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/rohan/Card20_323.java @@ -0,0 +1,54 @@ +package com.gempukku.lotro.cards.set20.rohan; + +import com.gempukku.lotro.cards.AbstractAttachableFPPossession; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.ExertCharactersEffect; +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.RequiredTriggerAction; +import com.gempukku.lotro.logic.modifiers.KeywordModifier; +import com.gempukku.lotro.logic.modifiers.Modifier; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * 2 + * •Firefoot, Trusted Steed + * Rohan Possession • Mount + * Bearer must be a [Rohan] man. + * If bearer is Eomer, he is defender +1. + * At the start of each skirmish involving bearer, each unmounted minion skirmishing bearer must exert. + */ +public class Card20_323 extends AbstractAttachableFPPossession { + public Card20_323() { + super(2, 0, 0, Culture.ROHAN, PossessionClass.MOUNT, "Firefoot", "Trusted Steed", true); + } + + @Override + protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) { + return Filters.and(Culture.ROHAN, Race.MAN); + } + + @Override + protected List getNonBasicStatsModifiers(PhysicalCard self) { + return Collections.singletonList( + new KeywordModifier(self, Filters.and(Filters.hasAttached(self), Filters.name(Names.eomer)), Keyword.DEFENDER, 1)); + } + + @Override + public List getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (TriggerConditions.startOfPhase(game, effectResult, Phase.SKIRMISH) + && PlayConditions.isActive(game, Filters.hasAttached(self), Filters.inSkirmish)) { + RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new ExertCharactersEffect(action, self, CardType.MINION, Filters.not(Filters.mounted), Filters.inSkirmish)); + return Collections.singletonList(action); + } + return null; + } +}