"Guard Commander", "Captain of the Underdeeps"

This commit is contained in:
marcins78
2013-02-04 14:43:22 +00:00
parent 3c42ed49ba
commit f7e5b5b1a6

View File

@@ -0,0 +1,46 @@
package com.gempukku.lotro.cards.set20.moria;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
import com.gempukku.lotro.cards.modifiers.evaluator.CountSpottableEvaluator;
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;
/**
* 3
* •Guard Commander, Captain of the Underdeeps
* Moria Minion • Goblin
* 7 2 4
* Remove (3) to make Guard Commander strength +1 for every other [Moria] Goblin you can spot.
*/
public class Card20_275 extends AbstractMinion {
public Card20_275() {
super(3, 7, 2, 4, Race.GOBLIN, Culture.MORIA, "Guard Commander", "Captain of the Underdeeps", true);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 3)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new RemoveTwilightEffect(3));
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId,
new CountSpottableEvaluator(Filters.not(self), Culture.MORIA, Race.GOBLIN), self));
return Collections.singletonList(action);
}
return null;
}
}