"Orkish Cavalry"

This commit is contained in:
marcins78@gmail.com
2012-02-16 03:08:25 +00:00
parent c3e5160341
commit 981e5445f6

View File

@@ -0,0 +1,65 @@
package com.gempukku.lotro.cards.set17.orc;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndAssignCharacterToMinionEffect;
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.DrawCardsEffect;
import com.gempukku.lotro.logic.timing.Action;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: Rise of Saruman
* Side: Shadow
* Culture: Orc
* Twilight Cost: 3
* Type: Minion • Orc
* Strength: 8
* Vitality: 2
* Site: 4
* Game Text: Each time you play an [ORC] mount, you may draw a card. Assignment: If this minion is mounted, exert
* it twice to assign it to a companion of strength 9 or more.
*/
public class Card17_074 extends AbstractMinion {
public Card17_074() {
super(3, 8, 2, 4, Race.ORC, Culture.ORC, "Orkish Cavalry");
}
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.played(game, effectResult, Filters.owner(playerId), Culture.ORC, PossessionClass.MOUNT)) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendEffect(
new DrawCardsEffect(action, playerId, 1));
return Collections.singletonList(action);
}
return null;
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, self, 0)
&& PlayConditions.canSpot(game, self, Filters.mounted)
&& PlayConditions.canSelfExert(self, 2, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new ChooseAndAssignCharacterToMinionEffect(action, playerId, self, CardType.COMPANION, Filters.not(Filters.lessStrengthThan(9))));
return Collections.singletonList(action);
}
return null;
}
}