"Always Threatening"

This commit is contained in:
marcins78@gmail.com
2012-01-10 16:29:01 +00:00
parent e49cde351d
commit 0e459b3dc1
2 changed files with 69 additions and 1 deletions

View File

@@ -0,0 +1,68 @@
package com.gempukku.lotro.cards.set13.orc;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.AddTokenEffect;
import com.gempukku.lotro.cards.effects.ChoiceEffect;
import com.gempukku.lotro.cards.effects.RemoveTokenEffect;
import com.gempukku.lotro.cards.effects.SelfDiscardEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
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.timing.Action;
import com.gempukku.lotro.logic.timing.Effect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
/**
* Set: Bloodlines
* Side: Shadow
* Culture: Orc
* Twilight Cost: 1
* Type: Condition • Support Area
* Game Text: When you play this, you may add an [ORC] token here for each [ORC] condition you can spot.
* Skirmish: Discard this from play or remove 2 tokens from here to make a lurker minion strength +2.
*/
public class Card13_103 extends AbstractPermanent {
public Card13_103() {
super(Side.SHADOW, 1, CardType.CONDITION, Culture.ORC, Zone.SUPPORT, "Always Threatening");
}
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.played(game, effectResult, self)) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
int count = Filters.countSpottable(game.getGameState(), game.getModifiersQuerying(), Culture.ORC, CardType.CONDITION);
action.appendEffect(
new AddTokenEffect(self, self, Token.ORC, count));
return Collections.singletonList(action);
}
return null;
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0)) {
ActivateCardAction action = new ActivateCardAction(self);
List<Effect> possibleCosts = new LinkedList<Effect>();
possibleCosts.add(
new RemoveTokenEffect(self, self, Token.ORC, 2));
possibleCosts.add(
new SelfDiscardEffect(self));
action.appendCost(
new ChoiceEffect(action, playerId, possibleCosts));
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 2, CardType.MINION, Keyword.LURKER));
return Collections.singletonList(action);
}
return null;
}
}

View File

@@ -7,7 +7,7 @@ public enum Token {
GONDOR(Culture.GONDOR), ISENGARD(Culture.ISENGARD), RAIDER(Culture.RAIDER), ROHAN(Culture.ROHAN), SHIRE(Culture.SHIRE),
WRAITH(Culture.WRAITH), SAURON(Culture.SAURON), GOLLUM(Culture.GOLLUM),
URUK_HAI(Culture.URUK_HAI), MEN(Culture.MEN);
URUK_HAI(Culture.URUK_HAI), MEN(Culture.MEN), ORC(Culture.ORC);
private Culture _culture;