"Faramir's Bow"
This commit is contained in:
@@ -0,0 +1,62 @@
|
|||||||
|
package com.gempukku.lotro.cards.set4.gondor;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractAttachableFPPossession;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
|
||||||
|
import com.gempukku.lotro.common.Culture;
|
||||||
|
import com.gempukku.lotro.common.Keyword;
|
||||||
|
import com.gempukku.lotro.common.Phase;
|
||||||
|
import com.gempukku.lotro.common.Race;
|
||||||
|
import com.gempukku.lotro.filters.Filter;
|
||||||
|
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.effects.ChooseAndWoundCharactersEffect;
|
||||||
|
import com.gempukku.lotro.logic.modifiers.KeywordModifier;
|
||||||
|
import com.gempukku.lotro.logic.modifiers.Modifier;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Two Towers
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Gondor
|
||||||
|
* Twilight Cost: 1
|
||||||
|
* Type: Possession • Ranged Weapon
|
||||||
|
* Game Text: Bearer must be Faramir. He is an archer. Skirmish: If Faramir is skirmishing a Man or a roaming minion,
|
||||||
|
* exert Faramir to wound that minion.
|
||||||
|
*/
|
||||||
|
public class Card4_118 extends AbstractAttachableFPPossession {
|
||||||
|
public Card4_118() {
|
||||||
|
super(1, 0, 0, Culture.GONDOR, Keyword.RANGED_WEAPON, "Faramir's Bow", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Filter getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
return Filters.name("Faramir");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Modifier> getNonBasicStatsModifiers(PhysicalCard self) {
|
||||||
|
return Collections.singletonList(
|
||||||
|
new KeywordModifier(self, Filters.hasAttached(self), Keyword.ARCHER));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self)
|
||||||
|
&& PlayConditions.canExert(self, game.getGameState(), game.getModifiersQuerying(), Filters.hasAttached(self))
|
||||||
|
&& Filters.countActive(game.getGameState(), game.getModifiersQuerying(), Filters.inSkirmishAgainst(Filters.hasAttached(self)), Filters.or(Filters.race(Race.MAN), Filters.keyword(Keyword.ROAMING))) > 0) {
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self, Keyword.SKIRMISH);
|
||||||
|
action.appendCost(
|
||||||
|
new ExertCharactersEffect(self, self.getAttachedTo()));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, Filters.inSkirmishAgainst(Filters.hasAttached(self)), Filters.or(Filters.race(Race.MAN), Filters.keyword(Keyword.ROAMING))));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user