Package mage.abilities.costs.mana

Examples of mage.abilities.costs.mana.GenericManaCost


                                    if (!varCosts.isEmpty()) {
                                        // use only first variable cost
                                        xManaValue = game.getPlayer(this.controllerId).announceXMana(varCosts.get(0).getMinX(), Integer.MAX_VALUE, "Announce kicker value for " + varCosts.get(0).getText(), game, this);
                                        // kicker variable X costs handled internally as multikicker with {1} cost (no multikicker on card)
                                        game.informPlayers(new StringBuilder(game.getPlayer(this.controllerId).getName()).append(" announced a value of ").append(xManaValue).append(" for ").append(" kicker X ").toString());
                                        ability.getManaCostsToPay().add(new GenericManaCost(xManaValue));
                                    } else {
                                        ability.getManaCostsToPay().add((ManaCostsImpl) cost.copy());                                       
                                    }
                                } else {
                                    ability.getCosts().add(cost.copy());
View Full Code Here


        super(ownerId, 276, "Essence Bottle", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{2}");
        this.expansionSetCode = "TMP";
        // {3}, {tap}: Put an elixir counter on Essence Bottle.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new AddCountersSourceEffect(CounterType.ELIXIR.createInstance()),
                new GenericManaCost(3));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
        // {tap}, Remove all elixir counters from Essence Bottle: You gain 2 life for each elixir counter removed this way.
        ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new EssenceBottleEffect(), new TapSourceCost());
        ability.addCost(new EssenceBottleCost());
View Full Code Here

        this.expansionSetCode = "ZEN";
        this.subtype.add("Equipment");

        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(0, 2)));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ReachAbility.getInstance(), AttachmentType.EQUIPMENT)));
        this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(2)));
    }
View Full Code Here

}

class SphinxOfJwarIsleLookAbility extends ActivatedAbilityImpl {

    public SphinxOfJwarIsleLookAbility() {
        super(Zone.BATTLEFIELD, new SphinxOfJwarIsleEffect(), new GenericManaCost(0));
        this.usesStack = false;
    }
View Full Code Here

class RavenousTrapAlternativeCost extends AlternativeCostImpl {

    public RavenousTrapAlternativeCost() {
        super("If an opponent had three or more cards put into his or her graveyard from anywhere this turn, you may pay {0} rather than pay Ravenous Trap's mana cost");
        this.add(new GenericManaCost(0));
    }
View Full Code Here

    public BladeOfTheBloodchief ( UUID ownerId ) {
        super(ownerId, 196, "Blade of the Bloodchief", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{1}");
        this.expansionSetCode = "ZEN";
        this.getSubtype().add("Equipment");

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

    public CarnageAltar(UUID ownerId) {
        super(ownerId, 198, "Carnage Altar", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{2}");
        this.expansionSetCode = "ZEN";

        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), new GenericManaCost(3));
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        this.addAbility(ability);
    }
View Full Code Here

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BlazingTorchDamageEffect(), new TapSourceCost());
        ability.addCost(new BlazingTorchCost());
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(ability, AttachmentType.EQUIPMENT)));
        // Equip {1}
        this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(1)));
    }
View Full Code Here

        Integer castCount = (Integer)game.getState().getValue(commanderId + "_castCount");
        if(castCount == null){
            castCount = 0;
            game.getState().setValue(commanderId + "_castCount", castCount);
        }   
        abilityToModify.getManaCostsToPay().add(new GenericManaCost(2*castCount));
        return true;
       
    }
View Full Code Here

class MindbreakTrapAlternativeCost extends AlternativeCostImpl {

    public MindbreakTrapAlternativeCost() {
        super("you may pay {0} rather than pay {this}'s mana cost");
        this.add(new GenericManaCost(0));
    }
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.