"Weapons of Control"
This commit is contained in:
@@ -0,0 +1,69 @@
|
|||||||
|
package com.gempukku.lotro.cards.set13.uruk_hai;
|
||||||
|
|
||||||
|
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.RequiredTriggerAction;
|
||||||
|
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: Uruk-hai
|
||||||
|
* Twilight Cost: 0
|
||||||
|
* Type: Condition • Support Area
|
||||||
|
* Game Text: When you play this, add an [URUK-HAI] token here for each wounded companion. Skirmish: Discard this from
|
||||||
|
* play or remove 2 tokens from here to make a companion skirmishing an [URUK-HAI] minion strength -1.
|
||||||
|
*/
|
||||||
|
public class Card13_177 extends AbstractPermanent {
|
||||||
|
public Card13_177() {
|
||||||
|
super(Side.SHADOW, 0, CardType.CONDITION, Culture.URUK_HAI, Zone.SUPPORT, "Weapons of Control");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
|
if (TriggerConditions.played(game, effectResult, self)) {
|
||||||
|
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||||
|
int count = Filters.countActive(game.getGameState(), game.getModifiersQuerying(), CardType.COMPANION, Filters.wounded);
|
||||||
|
if (count > 0)
|
||||||
|
action.appendEffect(
|
||||||
|
new AddTokenEffect(self, self, Token.URUK_HAI, 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.URUK_HAI, 2));
|
||||||
|
possibleCosts.add(
|
||||||
|
new SelfDiscardEffect(self));
|
||||||
|
action.appendCost(
|
||||||
|
new ChoiceEffect(action, playerId, possibleCosts));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, -1, CardType.COMPANION, Filters.inSkirmishAgainst(Culture.URUK_HAI, CardType.MINION)));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user