"Guard Commander"

This commit is contained in:
marcins78@gmail.com
2011-09-08 21:44:10 +00:00
parent 9c3a513119
commit 66542a4cff

View File

@@ -0,0 +1,55 @@
package com.gempukku.lotro.cards.set1.moria;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
import com.gempukku.lotro.cards.modifiers.StrengthModifier;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Phase;
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.DefaultCostToEffectAction;
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Fellowship of the Ring
* Side: Shadow
* Culture: Moria
* Twilight Cost: 3
* Type: Minion • Orc
* Strength: 7
* Vitality: 2
* Site: 4
* Game Text: Skirmish: Remove (3) to make a [MORIA] Orc strength +2.
*/
public class Card1_186 extends AbstractMinion {
public Card1_186() {
super(3, 7, 2, 4, Keyword.ORC, Culture.MORIA, "Guard Commander", true);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self, 3)) {
final DefaultCostToEffectAction action = new DefaultCostToEffectAction(self, Keyword.SKIRMISH, "Remove (3) to make a MORIA Orc strength +2.");
action.addCost(new RemoveTwilightEffect(3));
action.addEffect(
new ChooseActiveCardEffect(playerId, "Choose MORIA Orc", Filters.culture(Culture.MORIA), Filters.keyword(Keyword.ORC)) {
@Override
protected void cardSelected(PhysicalCard moriaOrc) {
action.addEffect(
new AddUntilEndOfPhaseModifierEffect(
new StrengthModifier(self, Filters.sameCard(moriaOrc), 2), Phase.SKIRMISH));
}
});
return Collections.singletonList(action);
}
return null;
}
}