Package mage.abilities.mana

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


        // Sandstone Needle enters the battlefield tapped with two depletion counters on it.
        this.addAbility(new EntersBattlefieldTappedAbility());
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.DEPLETION.createInstance(2))));
        // {tap}, Remove a depletion counter from Sandstone Needle: Add {R}{R} to your mana pool. If there are no depletion counters on Sandstone Needle, sacrifice it.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana(2), new TapSourceCost());
        ability.addCost(new RemoveCountersSourceCost(CounterType.DEPLETION.createInstance(1)));
        ability.addEffect(new ConditionalOneShotEffect(new SacrificeSourceEffect(), new SourceHasCounterCondition(CounterType.DEPLETION, 0,0), "If there are no depletion counters on Sandstone Needle, sacrifice it"));
        this.addAbility(ability);
    }

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


        // {tap}: Add {1} to your mana pool.
        this.addAbility(new ColorlessManaAbility());
        // {GW}, {tap}: Add {G}{G}, {G}{W}, or {W}{W} to your mana pool.
        SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana(2), new ManaCostsImpl("{G/W}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);

        ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 1, 0, 1, 0, 0, 0), new ManaCostsImpl("{G/W}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
View Full Code Here

        SimpleManaAbility ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana(2), new ManaCostsImpl("{G/W}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);

        ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 1, 0, 1, 0, 0, 0), new ManaCostsImpl("{G/W}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);

        ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana(2), new ManaCostsImpl("{G/W}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
View Full Code Here

        ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 1, 0, 1, 0, 0, 0), new ManaCostsImpl("{G/W}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);

        ability = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana(2), new ManaCostsImpl("{G/W}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }

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

        this.addAbility(new EntersBattlefieldTappedAbility());
        // {tap}: Add {G} to your mana pool.
        this.addAbility(new GreenManaAbility());
        // {tap}, Sacrifice Havenwood Battleground: Add {G}{G} to your mana pool.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new BasicManaEffect(Mana.GreenMana(2)), new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }

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

        // {tap}: Add {1} to your mana pool.
        this.addAbility(new ColorlessManaAbility());
        // {5}, {tap}: Add {W}{U}{B}{R}{G} to your mana pool.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(1, 1, 1, 1, 1, 0, 0), new ManaCostsImpl("{5}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }

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

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

        // {1}, Sacrifice Treva's Attendant: Add {G}{W}{U} to your mana pool.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(0, 1, 1, 1, 0, 0, 0), new ManaCostsImpl("{1}"));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }

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

        this.addAbility(new EntersBattlefieldTappedAbility());
        // {tap}: Add {B} to your mana pool.
        this.addAbility(new BlackManaAbility());
        // {tap}, Sacrifice Sulfur Vent: Add {U}{R} to your mana pool.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new Mana(1, 0, 1, 0, 0, 0, 0), new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }

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

        this.addAbility(new EntersBattlefieldTappedAbility());
        // {tap}: Add {R} to your mana pool.
        this.addAbility(new RedManaAbility());
        // {tap}, Sacrifice Geothermal Crevice: Add {B}{G} to your mana pool.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new BasicManaEffect(new Mana(0, 1, 0, 0, 1, 0, 0)), new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }

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

        this.addAbility(new EntersBattlefieldTappedAbility());
        // {tap}: Add {U} to your mana pool.
        this.addAbility(new BlueManaAbility());
        // {tap}, Sacrifice Svyelunite Temple: Add {U}{U} to your mana pool.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD, new BasicManaEffect(Mana.BlueMana(2)), new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }

    public SvyeluniteTemple(final SvyeluniteTemple 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.