Package mage.abilities.mana

Examples of mage.abilities.mana.ConditionalManaAbility


    public RiverOfTears(UUID ownerId) {
        super(ownerId, 179, "River of Tears", Rarity.RARE, new CardType[]{CardType.LAND}, "");
        this.expansionSetCode = "FUT";

        // {tap}: Add {U} to your mana pool. If you played a land this turn, add {B} to your mana pool instead.
        this.addAbility(new ConditionalManaAbility(Zone.BATTLEFIELD, new ConditionalManaEffect(
                new BasicManaEffect(Mana.BlackMana),
                new BasicManaEffect(Mana.BlueMana),
                LandfallCondition.getInstance(),
                "Add {U} to your mana pool. If you played a land this turn, add {B} to your mana pool instead"),
            new TapSourceCost()));
View Full Code Here


        // If Gemstone Caverns is in your opening hand and you're not playing first, you may begin the game with Gemstone Caverns on the battlefield with a luck counter on it. If you do, exile a card from your hand.
        this.addAbility(new GemstoneCavernsAbility());
       
        // {tap}: Add {1} to your mana pool. If Gemstone Caverns has a luck counter on it, instead add one mana of any color to your mana pool.
        Ability ability = new ConditionalManaAbility(Zone.BATTLEFIELD,
                new ConditionalManaEffect(
                    new AddManaOfAnyColorEffect(),
                    new BasicManaEffect(Mana.ColorlessMana),   
                    new SourceHasCounterCondition(CounterType.LUCK),
                    "Add {1} to your mana pool. If {this} has a luck counter on it, instead add one mana of any color to your mana pool."),
View Full Code Here

TOP

Related Classes of mage.abilities.mana.ConditionalManaAbility

Copyright © 2018 www.massapicom. 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.