Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.DynamicManaEffect


    public DynamicManaAbility(Mana mana, DynamicValue amount, Cost cost) {
        this(mana, amount, cost, null);
    }

    public DynamicManaAbility(Mana mana, DynamicValue amount, Cost cost, String text) {
        super(Zone.BATTLEFIELD, new DynamicManaEffect(mana, amount, text), cost);
        manaEffect = (DynamicManaEffect) this.getEffects().get(0);
    }
View Full Code Here


        this.expansionSetCode = "NPH";

        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new AddCountersSourceEffect(CounterType.CHARGE.createInstance()), TargetController.YOU, false));
        this.addAbility(new SpellCastControllerTriggeredAbility(new AddCountersSourceEffect(CounterType.CHARGE.createInstance()), filter, false));

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DynamicManaEffect(Mana.ColorlessMana, new CountersCount(CounterType.CHARGE)), new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "AVR";

        this.color.setRed(true);

        // Add {R} to your mana pool for each creature you control.
        this.getSpellAbility().addEffect(new DynamicManaEffect(Mana.RedMana, new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent())));
    }
View Full Code Here

        ability.addEffect(new BecomesCreatureTargetEffect(new KothOfTheHammerToken(), "land", Duration.EndOfTurn));
        ability.addTarget(new TargetLandPermanent(filter));
        this.addAbility(ability);

        // -2: Add {R} to your mana pool for each Mountain you control.
        this.addAbility(new LoyaltyAbility(new DynamicManaEffect(Mana.RedMana, new PermanentsOnBattlefieldCount(filterCount)), -2));

        // -5: You get an emblem with "Mountains you control have '{T}: This land deals 1 damage to target creature or player.'
        this.addAbility(new LoyaltyAbility(new GetEmblemEffect(new KothOfTheHammerEmblem()), -5));
    }
View Full Code Here

        super(ownerId, 132, "Cabal Coffers", Rarity.UNCOMMON, new CardType[]{CardType.LAND}, "");
        this.expansionSetCode = "HOP";

        // {2}, {tap}: Add {B} to your mana pool for each Swamp you control.
        Ability ability = new SimpleManaAbility(Zone.BATTLEFIELD,
                new DynamicManaEffect(Mana.BlackMana, new PermanentsOnBattlefieldCount(filter)),
                new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "CNS";

        this.color.setRed(true);

        // Add {R} to your mana pool for each tapped land your opponents control.
        this.getSpellAbility().addEffect(new DynamicManaEffect(Mana.RedMana, new PermanentsOnBattlefieldCount(filter)));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.DynamicManaEffect

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.