Package mage.abilities.costs.mana

Examples of mage.abilities.costs.mana.ManaCostsImpl


    private static final String reminderTextMana = "<i>(You may pay an additional {cost} as you cast this spell. If you do, put this card into your hand as it resolves.)</i>";
    protected OptionalAdditionalCost buybackCost;

    public BuybackAbility(String manaString) {
       super(Zone.STACK, new BuybackEffect());
       this.buybackCost = new OptionalAdditionalCostImpl(keywordText, reminderTextMana, new ManaCostsImpl(manaString));
       setRuleAtTheTop(true);
    }
View Full Code Here


     *
     * @param manaString
     * @param monstrosityValue use Integer.MAX_VALUE for monstrosity X.
     */
    public MonstrosityAbility(String manaString, int monstrosityValue) {
        super(Zone.BATTLEFIELD, new BecomeMonstrousSourceEffect(monstrosityValue),new ManaCostsImpl(manaString));
        this.monstrosityValue = monstrosityValue;
    }
View Full Code Here

    private static final String reminderTextMana = "<i>(When you cast this spell, copy it for each time you paid its replicate cost. You may choose new targets for the copies.)</i>";
    protected OptionalAdditionalCost additionalCost;

    public ReplicateAbility(Card card, String manaString) {
       super(Zone.STACK, null);
       this.additionalCost = new OptionalAdditionalCostImpl(keywordText, reminderTextMana, new ManaCostsImpl(manaString));
       this.additionalCost.setRepeatable(true);
       setRuleAtTheTop(true);
       card.addAbility(new ReplicateTriggeredAbility());
    }
View Full Code Here

        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        this.addAbility(HasteAbility.getInstance());
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{B}")));
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // Haste
        this.addAbility(HasteAbility.getInstance());
        // {R}{R}{R}: Regenerate Eron the Relentless.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{R}{R}{R}"));
        this.addAbility(ability);
    }
View Full Code Here

        this.toughness = new MageInt(1);

        // Shadow
        this.addAbility(ShadowAbility.getInstance());
        // {1}{B}: Dauthi Mercenary gets +1/+0 until end of turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{1}{B}")));
    }
View Full Code Here

public class StriveAbility extends SimpleStaticAbility {

    private final String striveCost;
           
    public StriveAbility(String manaString) {
        super(Zone.STACK, new StriveCostIncreasementEffect(new ManaCostsImpl(manaString)));
        setRuleAtTheTop(true);
        this.striveCost = manaString;
    }
View Full Code Here

                        }
                        for (int i = 0; i < amountMana; i++) {
                            manaString.append("{").append(manaSymbol).append("}");
                        }
                    }
                    manaCostsToPay.add(new ManaCostsImpl(manaString.toString()));
                    manaCostsToPay.setX(amountMana);
                }
                variableManaCost.setPaid();
            }
        }
View Full Code Here

        this.toughness = new MageInt(1);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {1}{W}: Mesa Falcon gets +0/+1 until end of turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}{W}")));
    }
View Full Code Here

        // {1}{B}: Put a -1/-1 counter on enchanted creature.
        //this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersAttachedEffect(CounterType.M1M1.createInstance(), rule), new ManaCostsImpl("[1}{B}")));
        this.addAbility(new SimpleActivatedAbility(
                Zone.BATTLEFIELD,
                new AddCountersAttachedEffect(CounterType.M1M1.createInstance(),"enchanted creature"),
                new ManaCostsImpl("{1}{B}")));
    }
View Full Code Here

TOP

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

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.