Package mage.abilities.costs.mana

Examples of mage.abilities.costs.mana.GenericManaCost


        this.expansionSetCode = "ZEN";
        this.color.setBlue(true);

        // Counter target noncreature spell unless its controller pays .
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(2)));
    }
View Full Code Here


        // Crypt of Agadeem enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
        // {T}: Add {B} to your mana pool.
        this.addAbility(new BlackManaAbility());
        // {2}, {T}: Add {B} to your mana pool for each black creature card in your graveyard.
        DynamicManaAbility ability = new DynamicManaAbility(Mana.BlackMana, new CardsInControllerGraveyardCount(filter), new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

        // {2}, {tap}, Sacrifice Expedition Map: Search your library for a land card, reveal it, and put it into your hand. Then shuffle your library.
        TargetCardInLibrary target = new TargetCardInLibrary(new FilterLandCard());
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new SearchLibraryPutInHandEffect(target, true),
                new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());

        this.addAbility(ability);
    }
View Full Code Here

            }
            if (ability.getManaCosts().getVariableCosts().size() > 0) {
                int amount = getAvailableManaProducers(game).size() - ability.getManaCosts().convertedManaCost();
                if (amount > 0) {
                    ability = ability.copy();
                    ability.getManaCostsToPay().add(new GenericManaCost(rnd.nextInt(amount)));
                }
            }
            // check if ability kills player, if not then it's ok to play
//            if (ability.isUsesStack()) {
//                Game testSim = game.copy();
View Full Code Here

class SummoningTrapAlternativeCost extends AlternativeCostImpl {

    public SummoningTrapAlternativeCost() {
        super("you may pay {0} rather than pay Summoning Trap's mana cost");
        this.add(new GenericManaCost(0));
    }
View Full Code Here

        this.subtype.add("Equipment");

        // Equipped creature has nonbasic landwalk.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(new NonbasicLandwalkAbility(), AttachmentType.EQUIPMENT)));
        // Equip {2}
        this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(2)));
    }
View Full Code Here

class ArchiveTrapAlternativeCost extends AlternativeCostImpl {

    public ArchiveTrapAlternativeCost() {
        super("you may pay {0} rather than pay Archive Trap's mana cost");
        this.add(new GenericManaCost(0));
    }
View Full Code Here

        super(ownerId, 202, "Explorer's Scope", Rarity.COMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
        this.expansionSetCode = "ZEN";
        this.subtype.add("Equipment");

        this.addAbility(new AttacksAttachedTriggeredAbility(new ExplorersScopeEffect()));
        this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(1)));
    }
View Full Code Here

        super(ownerId, 275, "Energizer", Rarity.RARE, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}");
        this.expansionSetCode = "TMP";
        this.subtype.add("Juggernaut");
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)), new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

                                int colorless = mana != null ? mana.getColorless() : 0;
                                if (!updated && colorless > 0) {
                                    if ((colorless - reduceCount) > 0) {
                                        int newColorless = colorless - reduceCount;
                                        it.remove();
                                        adjustedCost.add(new GenericManaCost(newColorless));
                                    }
                                    updated = true;
                                } else {
                                    adjustedCost.add(manaCost);
                                }
View Full Code Here

TOP

Related Classes of mage.abilities.costs.mana.GenericManaCost

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.