Package mage.abilities.costs

Examples of mage.abilities.costs.OptionalAdditionalCostImpl


    public KickerAbility copy() {
       return new KickerAbility(this);
    }

    public final OptionalAdditionalCost addKickerCost(String manaString) {
       OptionalAdditionalCost kickerCost = new OptionalAdditionalCostImpl(keywordText, reminderText, new ManaCostsImpl(manaString));
       kickerCosts.add(kickerCost);
       return kickerCost;
    }
View Full Code Here


       kickerCosts.add(kickerCost);
       return kickerCost;
    }

    public final OptionalAdditionalCost addKickerCost(Cost cost) {
       OptionalAdditionalCost kickerCost = new OptionalAdditionalCostImpl(keywordText, "-", reminderText, cost);
       kickerCosts.add(kickerCost);
       return kickerCost;
    }
View Full Code Here

        this.expansionSetCode = "ZEN";

        this.color.setBlack(true);

        // Kicker - Tap an untapped Vampire you control.
        OptionalAdditionalCost cost = new OptionalAdditionalCostImpl("Kicker-","",new TapTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, true)));
        this.addAbility(new KickerAbility(cost));

        // Target opponent loses half his or her life, rounded up.
        this.getSpellAbility().addTarget(new TargetOpponent());
        this.getSpellAbility().addEffect(new BloodTributeLoseLifeEffect());
View Full Code Here

    private static final String reminderText = "<i> (Choose both if you pay the entwine cost.)</i>";
    protected OptionalAdditionalCost additionalCost;

    public EntwineAbility(String manaString) {
       super(Zone.STACK, null);
       this.additionalCost = new OptionalAdditionalCostImpl(keywordText, reminderText, new ManaCostsImpl(manaString));
    }
View Full Code Here

       this.additionalCost = new OptionalAdditionalCostImpl(keywordText, reminderText, new ManaCostsImpl(manaString));
    }

    public EntwineAbility(Cost cost) {
       super(Zone.STACK, null);
       this.additionalCost = new OptionalAdditionalCostImpl(keywordText, "-", reminderText, cost);
       setRuleAtTheTop(true);
    }
View Full Code Here

    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

       setRuleAtTheTop(true);
    }
   
    public BuybackAbility(Cost cost) {
       super(Zone.STACK, new BuybackEffect());
       this.buybackCost = new OptionalAdditionalCostImpl(keywordText, "-", reminderTextCost, cost);
       setRuleAtTheTop(true);
    }
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

TOP

Related Classes of mage.abilities.costs.OptionalAdditionalCostImpl

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.