Examples of addCost()


Examples of mage.abilities.Ability.addCost()

        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
       
        // {tap}, Remove an eon counter from Magosi, the Waterveil and return it to its owner's hand: Take an extra turn after this one.
        Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddExtraTurnControllerEffect(), new TapSourceCost());
        ability2.addCost(new RemoveCountersSourceCost(CounterType.EON.createInstance()));
        ability2.addCost(new ReturnToHandSourceCost());
        this.addAbility(ability2);
       
    }
View Full Code Here

Examples of mage.abilities.Ability.addCost()

        this.addAbility(ability);
       
        // {tap}, Remove an eon counter from Magosi, the Waterveil and return it to its owner's hand: Take an extra turn after this one.
        Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddExtraTurnControllerEffect(), new TapSourceCost());
        ability2.addCost(new RemoveCountersSourceCost(CounterType.EON.createInstance()));
        ability2.addCost(new ReturnToHandSourceCost());
        this.addAbility(ability2);
       
    }

    public MagosiTheWaterveil(final MagosiTheWaterveil card) {
View Full Code Here

Examples of mage.abilities.common.ActivateAsSorceryActivatedAbility.addCost()

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

        // {2}{B}, {tap}: Target player discards a card. Activate this ability only any time you could cast a sorcery.
        Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new DiscardTargetEffect(1), new ManaCostsImpl("{2}{B}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

    public CatBurglar(final CatBurglar card) {
View Full Code Here

Examples of mage.abilities.common.ActivateIfConditionActivatedAbility.addCost()

                Zone.BATTLEFIELD,
                new MistveilPlainsGraveyardToLibraryEffect(),
                new ManaCostsImpl("{W}"),
                new PermanentsOnTheBattlefieldCondition(filter, PermanentsOnTheBattlefieldCondition.CountType.MORE_THAN, 1));
        ability.addTarget(new TargetCardInYourGraveyard());
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);

    }

    public MistveilPlains(final MistveilPlains card) {
View Full Code Here

Examples of mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility.addCost()

        // Champion a Merfolk
        this.addAbility(new ChampionAbility(this, "Merfolk"));
        // Whenever Wanderwine Prophets deals combat damage to a player, you may sacrifice a Merfolk. If you do, take an extra turn after this one.
        Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(new AddExtraTurnControllerEffect(), true);
        ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, filter, true)));
        this.addAbility(ability);
       
    }

    public WanderwineProphets(final WanderwineProphets card) {
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility.addCost()

        ability.addEffect(effect);
        this.addAbility(ability);
       
        // {2}{B}, Sacrifice another creature: Put a +1/+1 counter on Kheru Bloodsucker.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{2}{B}"));
        ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(anotherFilter)));
        this.addAbility(ability);
    }

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

Examples of mage.abilities.common.EntersBattlefieldAllTriggeredAbility.addCost()

        // Whenever another nontoken creature enters the battlefield under your control, you may pay {G}{U}. If you do, put a token that's a copy of that creature onto the battlefield.
        Ability ability = new EntersBattlefieldAllTriggeredAbility(
                Zone.BATTLEFIELD, new RikuOfTwoReflectionsCopyTokenEffect(),filterPermanent, false, true,
                "Whenever another nontoken creature enters the battlefield under your control, you may pay {G}{U}. If you do, put a token that's a copy of that creature onto the battlefield.",
                true);
        ability.addCost(new ManaCostsImpl("{G}{U}"));
        this.addAbility(ability);
    }

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

Examples of mage.abilities.common.EntersBattlefieldTappedAbility.addCost()

        ((EntersBattlefieldEffect)ability.getEffects().get(0)).addEffect(new AddCountersSourceEffect(CounterType.CHARGE.createInstance(3)));
        this.addAbility(ability);

        RemoveCountersSourceCost removeCounterCost = new RemoveCountersSourceCost(CounterType.CHARGE.createInstance());
        ability = new AnyColorManaAbility();
        ability.addCost(removeCounterCost);
        this.addAbility(ability);
    }

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

Examples of mage.abilities.common.EntersBattlefieldTriggeredAbility.addCost()

        this.expansionSetCode = "SOM";
        Ability ability = new EntersBattlefieldTriggeredAbility(new ContagionEngineEffect());
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ProliferateEffect(), new GenericManaCost(4));
        ability.addCost(new TapSourceCost());
        ability.addEffect(new ProliferateEffect());
        this.addAbility(ability);
    }

    public ContagionEngine (final ContagionEngine card) {
View Full Code Here

Examples of mage.abilities.common.LimitedTimesPerTurnActivatedAbility.addCost()

        // Cumulative upkeep {G}
        this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{G}")));
        // {2}{G}, Pay 3 life for each velocity counter on Tornado: Destroy target permanent and put a velocity counter on Tornado. Activate this ability only once each turn.
        Ability ability = new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{2}{G}"));
        DynamicValue lifeToPayAmount = new MultipliedValue(new CountersCount(CounterType.VELOCITY), 3);
        ability.addCost(new PayLifeCost(lifeToPayAmount, "3 life for each velocity counter on {source}"));
        ability.addTarget(new TargetPermanent());
        Effect effect = new AddCountersSourceEffect(CounterType.VELOCITY.createInstance());
        effect.setText("and put a velocity counter on {source}");
        ability.addEffect(effect);
        this.addAbility(ability);
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.