"Erkenbrand's Horn"
This commit is contained in:
@@ -0,0 +1,64 @@
|
|||||||
|
package com.gempukku.lotro.cards.set18.rohan;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractAttachableFPPossession;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDeckEffect;
|
||||||
|
import com.gempukku.lotro.cards.modifiers.evaluator.CardMatchesEvaluator;
|
||||||
|
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.modifiers.StrengthModifier;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: Treachery & Deceit
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Rohan
|
||||||
|
* Twilight Cost: 0
|
||||||
|
* Type: Possession
|
||||||
|
* Game Text: Bearer must be a [ROHAN] Man. Fellowship: Exert bearer to play a follower from your draw deck. Reshuffle
|
||||||
|
* your draw deck. Skirmish: Discard a follower from play to make bearer strength +4 (if bearer is Erkenbrand,
|
||||||
|
* he is strength +5 instead).
|
||||||
|
*/
|
||||||
|
public class Card18_096 extends AbstractAttachableFPPossession {
|
||||||
|
public Card18_096() {
|
||||||
|
super(0, 0, 0, Culture.ROHAN, null, "Erkenbrand's Horn", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
return Filters.and(Culture.ROHAN, Race.MAN);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
|
||||||
|
&& PlayConditions.canExert(self, game, self.getAttachedTo())) {
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
action.appendCost(
|
||||||
|
new ExertCharactersEffect(self, self.getAttachedTo()));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndPlayCardFromDeckEffect(playerId, Side.FREE_PEOPLE, CardType.FOLLOWER));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self)
|
||||||
|
&& PlayConditions.canDiscardFromPlay(self, game, CardType.FOLLOWER)) {
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
action.appendCost(
|
||||||
|
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.FOLLOWER));
|
||||||
|
action.appendEffect(
|
||||||
|
new AddUntilEndOfPhaseModifierEffect(
|
||||||
|
new StrengthModifier(self, self.getAttachedTo(), null, new CardMatchesEvaluator(4, 5, Filters.name("Erkenbrand"))), Phase.SKIRMISH));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user