"Orkish Sneak"
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
package com.gempukku.lotro.cards.set18.orc;
|
||||
|
||||
import com.gempukku.lotro.cards.AbstractMinion;
|
||||
import com.gempukku.lotro.cards.PlayConditions;
|
||||
import com.gempukku.lotro.cards.actions.SubCostToEffectAction;
|
||||
import com.gempukku.lotro.cards.effects.AddBurdenEffect;
|
||||
import com.gempukku.lotro.cards.effects.ChoiceEffect;
|
||||
import com.gempukku.lotro.cards.effects.OptionalEffect;
|
||||
import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect;
|
||||
import com.gempukku.lotro.common.Culture;
|
||||
import com.gempukku.lotro.common.Phase;
|
||||
import com.gempukku.lotro.common.Race;
|
||||
import com.gempukku.lotro.filters.Filters;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.logic.GameUtils;
|
||||
import com.gempukku.lotro.logic.actions.ActivateCardAction;
|
||||
import com.gempukku.lotro.logic.effects.AssignmentEffect;
|
||||
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
|
||||
import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect;
|
||||
import com.gempukku.lotro.logic.effects.StackActionEffect;
|
||||
import com.gempukku.lotro.logic.timing.Action;
|
||||
import com.gempukku.lotro.logic.timing.Effect;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Set: Treachery & Deceit
|
||||
* Side: Shadow
|
||||
* Culture: Orc
|
||||
* Twilight Cost: 2
|
||||
* Type: Minion • Orc
|
||||
* Strength: 7
|
||||
* Vitality: 1
|
||||
* Site: 4
|
||||
* Game Text: Assignment: Spot another [ORC] Orc to assign this minion to skirmish a non-[SHIRE] Ring-bearer.
|
||||
* The Free Peoples player may add a burden or exert the Ring-bearer twice to discard this minion.
|
||||
*/
|
||||
public class Card18_091 extends AbstractMinion {
|
||||
public Card18_091() {
|
||||
super(2, 7, 1, 4, Race.ORC, Culture.ORC, "Orkish Sneak", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<? extends Action> getExtraPhaseActions(final String playerId, LotroGame game, final PhysicalCard self) {
|
||||
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, self, 0)
|
||||
&& PlayConditions.canSpot(game, Filters.not(self), Culture.ORC, Race.ORC)) {
|
||||
final ActivateCardAction action = new ActivateCardAction(self);
|
||||
action.appendCost(
|
||||
new ChooseActiveCardEffect(self, playerId, "Choose another ORC Orc", Filters.not(self), Culture.ORC, Race.ORC) {
|
||||
@Override
|
||||
protected void cardSelected(LotroGame game, final PhysicalCard minion) {
|
||||
action.appendEffect(
|
||||
new ChooseActiveCardEffect(self, playerId, "Choose a non-SHIRE Ring-bearer", Filters.not(Culture.SHIRE), Filters.ringBearer) {
|
||||
@Override
|
||||
protected void cardSelected(LotroGame game, PhysicalCard ringBearer) {
|
||||
action.appendEffect(
|
||||
new AssignmentEffect(playerId, ringBearer, minion, false));
|
||||
}
|
||||
});
|
||||
List<Effect> possibleCosts = new LinkedList<Effect>();
|
||||
possibleCosts.add(
|
||||
new AddBurdenEffect(self, 1));
|
||||
possibleCosts.add(
|
||||
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, Filters.ringBearer));
|
||||
SubCostToEffectAction subAction = new SubCostToEffectAction(action);
|
||||
action.appendCost(
|
||||
new ChoiceEffect(subAction, game.getGameState().getCurrentPlayerId(), possibleCosts));
|
||||
action.appendEffect(
|
||||
new DiscardCardsFromPlayEffect(self, minion));
|
||||
action.appendEffect(
|
||||
new OptionalEffect(action, game.getGameState().getCurrentPlayerId(),
|
||||
new StackActionEffect(subAction) {
|
||||
@Override
|
||||
public String getText(LotroGame game) {
|
||||
return "Add burden or exert the Ring-bearer twice to discard " + GameUtils.getCardLink(minion);
|
||||
}
|
||||
}));
|
||||
}
|
||||
});
|
||||
return Collections.singletonList(action);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user