Examples of addCost()


Examples of mage.abilities.decorator.ConditionalActivatedAbility.addCost()

                new ReturnSourceFromGraveyardToBattlefieldEffect(),
                new ManaCostsImpl("{3}{B}{B}"),
                new IsStepCondition(PhaseStep.UPKEEP),
                null
        );
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        this.addAbility(ability);
    }

    public Necrosavant(final Necrosavant card) {
        super(card);
View Full Code Here

Examples of mage.abilities.decorator.ConditionalGainActivatedAbility.addCost()

        Ability thresholdAbility = new ConditionalGainActivatedAbility(Zone.BATTLEFIELD,
            new BoostTargetEffect(+3,+3, Duration.EndOfTurn),
            new ManaCostsImpl("{G}"),
            new CardsInControllerGraveCondition(7),
            "<i>Threshold</i> - {G}, {T}, Sacrifice {this}: Target creature gets +3/+3 until end of turn. Activate this ability only if seven or more cards are in your graveyard.");
        thresholdAbility.addCost(new TapSourceCost());
        thresholdAbility.addCost(new SacrificeSourceCost());
        thresholdAbility.addTarget(new TargetCreaturePermanent());
        this.addAbility(thresholdAbility);
    }
View Full Code Here

Examples of mage.abilities.keyword.BuybackAbility.addCost()

        this.color.setRed(true);

        // Buyback—Pay 3 life, Discard a card at random. (You may pay 3 life and discard a card at random in addition to any other costs as you cast this spell. If you do, put this card into your hand as it resolves.)
        BuybackAbility buybackAbility = new BuybackAbility(new PayLifeCost(3));
        buybackAbility.addCost(new DiscardCardCost(true));
        this.addAbility(buybackAbility);

        // Destroy target land.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetLandPermanent());
View Full Code Here

Examples of mage.abilities.keyword.EnchantAbility.addCost()

        this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
        // Enchanted creature has "{1}{W}, {T}: You gain 3 life."
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(3), new ManaCostsImpl("{1}{W}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability, AttachmentType.AURA, Duration.WhileOnBattlefield)));
    }

    public EpharasRadiance(final EpharasRadiance card) {
        super(card);
View Full Code Here

Examples of mage.abilities.keyword.FlashbackAbility.addCost()

        // Look at the top X cards of your library. Put one of them into your hand and the rest on the bottom of your library in any order.
        this.getSpellAbility().addEffect(new FlashOfInsightEffect());
        // Flashback-{1}{U}, Exile X blue cards from your graveyard.
        Ability ability = new FlashbackAbility(new ManaCostsImpl("{1}{U}"), TimingRule.INSTANT);
        ability.addCost(new ExileXFromYourGraveCost(filter));
        this.addAbility(ability);
    }

    public FlashOfInsight(final FlashOfInsight card) {
        super(card);
View Full Code Here

Examples of mage.abilities.keyword.HeroicAbility.addCost()

        // {U}{U}, Sacrifice Mindreaver: Counter target spell with the same name as a card exiled with mindreaver.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterTargetEffect(), new ManaCostsImpl("{U}{U}"));
        FilterSpell filter = new FilterSpell("spell with the same name as a card exiled with mindreaver");
        filter.add(new MindreaverNamePredicate(this.getId()));
        ability.addTarget(new TargetSpell(filter));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }

    public Mindreaver(final Mindreaver card) {
        super(card);
View Full Code Here

Examples of mage.abilities.mana.ActivateAsSorceryManaAbility.addCost()

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // {R}, Return Grinning Ignus to its owner's hand: Add {2}{R} to your mana pool. Activate this ability only any time you could cast a sorcery.
        Ability ability = new ActivateAsSorceryManaAbility(Zone.BATTLEFIELD, new Mana(1, 0, 0, 0, 0, 2, 0), new ManaCostsImpl("{R}"));
        ability.addCost(new ReturnToHandSourceCost());
        this.addAbility(ability);
    }

    public GrinningIgnus(final GrinningIgnus card) {
        super(card);
View Full Code Here

Examples of mage.abilities.mana.AnyColorManaAbility.addCost()

    public ChromaticSphere(UUID ownerId) {
        super(ownerId, 151, "Chromatic Sphere", Rarity.COMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
        this.expansionSetCode = "MRD";
        Ability ability = new AnyColorManaAbility(new GenericManaCost(1));
        ability.addCost(new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        ability.addEffect(new DrawCardSourceControllerEffect(1));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.mana.BlueManaAbility.addCost()

        Ability addW = new WhiteManaAbility();
        addW.addCost(new FilterPermanentCost(controlIsland));
        this.addAbility(addW);
        // {tap}: Add {U} to your mana pool. Activate this ability only if you control a Plains.
        Ability addU = new BlueManaAbility();
        addU.addCost(new FilterPermanentCost(controlPlains));
        this.addAbility(addU);
    }

    public NimbusMaze(final NimbusMaze card) {
        super(card);
View Full Code Here

Examples of mage.abilities.mana.ColorlessManaAbility.addCost()

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // {tap}, Put the top card of your library into your graveyard: Add {1} to your mana pool.
        ColorlessManaAbility ability = new ColorlessManaAbility();
        ability.addCost(new PutTopCardOfYourLibraryToGraveyardCost());
        this.addAbility(ability);
    }

    public DerangedAssistant(final DerangedAssistant card) {
        super(card);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.