"Mumak Commander"

This commit is contained in:
marcins78@gmail.com
2012-01-27 16:08:15 +00:00
parent 71f4108c46
commit 67c6a16884
2 changed files with 55 additions and 0 deletions

View File

@@ -31,6 +31,10 @@ public class PreventableEffect extends AbstractSubActionEffect {
this(action, effectToExecute, Collections.singletonList(choicePlayer), preventionCost, insteadEffect);
}
public PreventableEffect(CostToEffectAction action, Effect effectToExecute, List<String> choicePlayers, PreventionCost preventionCost) {
this(action, effectToExecute, choicePlayers, preventionCost, null);
}
public PreventableEffect(CostToEffectAction action, Effect effectToExecute, List<String> choicePlayers, PreventionCost preventionCost, Effect insteadEffect) {
_action = action;
_effectToExecute = effectToExecute;

View File

@@ -0,0 +1,51 @@
package com.gempukku.lotro.cards.set15.men;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect;
import com.gempukku.lotro.common.CardType;
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.actions.ActivateCardAction;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Hunters
* Side: Shadow
* Culture: Men
* Twilight Cost: 6
* Type: Minion • Man
* Strength: 14
* Vitality: 3
* Site: 4
* Game Text: Maneuver: Exert Mumak Commander twice to exert a companion twice (except the Ring-bearer).
*/
public class Card15_086 extends AbstractMinion {
public Card15_086() {
super(6, 14, 3, 4, Race.MAN, Culture.MEN, "Mumak Commander", true);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.MANEUVER, self, 0)
&& PlayConditions.canSelfExert(self, 2, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, CardType.COMPANION, Filters.not(Filters.ringBearer)));
return Collections.singletonList(action);
}
return null;
}
}