"Smaug, The Golden"
This commit is contained in:
@@ -0,0 +1,70 @@
|
|||||||
|
package com.gempukku.lotro.cards.set21.smaug;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractMinion;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.SelfDiscardEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.SelfExertEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
|
||||||
|
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.game.state.GameState;
|
||||||
|
import com.gempukku.lotro.logic.actions.ActivateCardAction;
|
||||||
|
import com.gempukku.lotro.logic.decisions.IntegerAwaitingDecision;
|
||||||
|
import com.gempukku.lotro.logic.effects.PlayoutDecisionEffect;
|
||||||
|
import com.gempukku.lotro.logic.modifiers.ModifiersQuerying;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: Main Deck
|
||||||
|
* Side: Shadow
|
||||||
|
* Culture: Smaug
|
||||||
|
* Twilight Cost: 16
|
||||||
|
* Type: Minion • Dragon
|
||||||
|
* Strength: 17
|
||||||
|
* Vitality: 5
|
||||||
|
* Site: 7
|
||||||
|
* Game Text: Damage +2. Fierce. Discard Smaug if not at a mountain. For each Dwarf, Man, and Elf you spot, Smaug's
|
||||||
|
* twilight cost is -1. Regroup: Exert Smaug and discard another minion to discard a Free Peoples card (except a
|
||||||
|
* companion, Bard, or a Ring).
|
||||||
|
*/
|
||||||
|
public class Card21_58 extends AbstractMinion {
|
||||||
|
public Card21_58() {
|
||||||
|
super(16, 17, 5, 7, Race.DRAGON, Culture.SMAUG, "Smaug", "The Golden", true);
|
||||||
|
addKeyword(Keyword.DAMAGE, 2);
|
||||||
|
addKeyword(Keyword.FIERCE);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
|
if (!game.getModifiersQuerying().hasKeyword(game.getGameState(), game.getGameState().getCurrentSite(), Keyword.UNDERGROUND)) {
|
||||||
|
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new SelfDiscardEffect(self));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getTwilightCostModifier(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard self) {
|
||||||
|
return - Filters.countActive(game.getGameState(), game.getModifiersQuerying(), Filters.or(Race.DWARF, Race.MAN, Race.ELF));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Action> getExtraPhaseActions(final String playerId, LotroGame game, final PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0)
|
||||||
|
&& PlayConditions.canDiscardFromPlay(self, game, CardType.MINION, Filters.not(self))
|
||||||
|
&& PlayConditions.canSelfExert(self, game)) {
|
||||||
|
final ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
action.appendCost(new SelfExertEffect(action, self));
|
||||||
|
action.appendCost(
|
||||||
|
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.MINION, Filters.not(self)));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Side.FREE_PEOPLE, Filters.not(CardType.COMPANION, PossessionClass.RING, Filters.name("Bard"))));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user