Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.StaticValue


        // As an additional cost to cast Hatred, pay X life.
        this.getSpellAbility().addCost(new PayVariableLifeCost(true));

        // Target creature gets +X/+0 until end of turn.
        DynamicValue xValue = new GetXValue();
        this.getSpellAbility().addEffect(new BoostTargetEffect(xValue, new StaticValue(0), Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here


    public AddCountersSourceEffect(Counter counter) {
        this(counter, false);
    }

    public AddCountersSourceEffect(Counter counter, boolean informPlayers) {
        this(counter, new StaticValue(0), informPlayers);
    }
View Full Code Here

    private Counter counter;
    private DynamicValue amount;
    private String textEnchanted;

    public AddCountersAttachedEffect(Counter counter, String textEnchanted) {
        this(counter, new StaticValue(0), textEnchanted);
    }
View Full Code Here

    public AddCountersTargetEffect(Counter counter, DynamicValue amount) {
        this(counter, amount, Outcome.Benefit);
    }

    public AddCountersTargetEffect(Counter counter, Outcome outcome) {
        this(counter, new StaticValue(0), outcome);
    }
View Full Code Here

public class ReinforceAbility extends SimpleActivatedAbility {
    private DynamicValue count;
    private Cost cost;

    public ReinforceAbility(int count, Cost cost) {
        this(new StaticValue(count), cost);
    }
View Full Code Here

                // choose a new target
                } else {
                    // build a target definition with exactly one possible target to select that replaces old target
                    Target tempTarget = target.copy();
                    if (target instanceof TargetAmount) {
                        ((TargetAmount)tempTarget).setAmountDefinition(new StaticValue(target.getTargetAmount(targetId)));
                    }
                    tempTarget.setMinNumberOfTargets(1);
                    tempTarget.setMaxNumberOftargets(1);
                    boolean again;
                    do {
View Full Code Here

    private DynamicValue amountCards;
    private FilterCard filter;
    private boolean anyOrder;

    public RevealLibraryPutIntoHandEffect(int amountCards, FilterCard filter, boolean anyOrder) {
        this(new StaticValue(amountCards), filter, anyOrder);
    }
View Full Code Here

    public LookLibraryControllerEffect(int numberOfCards, boolean mayShuffleAfter) {
        this(numberOfCards, mayShuffleAfter, true);
    }

    public LookLibraryControllerEffect(int numberOfCards, boolean mayShuffleAfter, boolean putOnTop) {
        this(new StaticValue(numberOfCards), mayShuffleAfter, putOnTop);
    }
View Full Code Here

public class GainLifeEffect extends OneShotEffect {

    private DynamicValue life;

    public GainLifeEffect(int life) {
        this(new StaticValue(life));
    }
View Full Code Here

    protected DynamicValue amount;
    protected boolean preventable;
    protected String targetDescription;

    public DamageTargetEffect(int amount) {
        this(new StaticValue(amount), true);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.dynamicvalue.common.StaticValue

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.