"Aragorn's Bow"
This commit is contained in:
@@ -0,0 +1,60 @@
|
|||||||
|
package com.gempukku.lotro.cards.set15.gondor;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractAttachableFPPossession;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
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.effects.AddThreatsEffect;
|
||||||
|
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 Hunters
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Gondor
|
||||||
|
* Twilight Cost: 1
|
||||||
|
* Type: Possession • Ranged Weapon
|
||||||
|
* Game Text: Bearer must be Aragorn. He is an archer. Archery: Add a threat to wound a minion with the lowest strength.
|
||||||
|
*/
|
||||||
|
public class Card15_056 extends AbstractAttachableFPPossession {
|
||||||
|
public Card15_056() {
|
||||||
|
super(1, 0, 0, Culture.GONDOR, PossessionClass.RANGED_WEAPON, "Aragorn's Bow", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
return Filters.aragorn;
|
||||||
|
}
|
||||||
|
|
||||||
|
@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, Phase.ARCHERY, self)
|
||||||
|
&& PlayConditions.canAddThreat(game, self, 1)) {
|
||||||
|
int lowestStrength = Integer.MAX_VALUE;
|
||||||
|
for (PhysicalCard physicalCard : Filters.filterActive(game.getGameState(), game.getModifiersQuerying(), CardType.MINION))
|
||||||
|
lowestStrength = Math.min(lowestStrength, game.getModifiersQuerying().getStrength(game.getGameState(), physicalCard));
|
||||||
|
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
action.appendCost(
|
||||||
|
new AddThreatsEffect(playerId, self, 1));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.MINION, Filters.lessStrengthThan(lowestStrength + 1)));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user