"Gorgoroth Ransacker"

This commit is contained in:
marcins78@gmail.com
2011-11-07 23:22:36 +00:00
parent 2718fed9be
commit ac49b763fd

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set7.sauron;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.DiscardStackedCardsEffect;
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.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Sauron
* Twilight Cost: 4
* Type: Minion • Orc
* Strength: 10
* Vitality: 2
* Site: 5
* Game Text: Besieger. Skirmish: If this minion is stacked on a site you control, discard him to make a [SAURON] Orc
* strength +5 (or +10 if you have initiative).
*/
public class Card7_276 extends AbstractMinion {
public Card7_276() {
super(4, 10, 2, 5, Race.ORC, Culture.SAURON, "Gorgoroth Ransacker");
addKeyword(Keyword.BESIEGER);
}
@Override
public List<? extends Action> getPhaseActionsFromStacked(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseStackedShadowCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self, 0)
&& Filters.siteControlled(playerId).accepts(game.getGameState(), game.getModifiersQuerying(), self.getStackedOn())) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new DiscardStackedCardsEffect(self, self));
boolean hasInitiative = PlayConditions.hasInitiative(game, Side.SHADOW);
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, hasInitiative ? 10 : 5, Culture.SAURON, Race.ORC));
return Collections.singletonList(action);
}
return null;
}
}