Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.StaticValue


    public SetPowerToughnessAllEffect(int power, int toughness, Duration duration) {
        this(new StaticValue(power), new StaticValue(toughness), duration, new FilterCreaturePermanent("Creatures"), true);
    }

    public SetPowerToughnessAllEffect(int power, int toughness, Duration duration, FilterPermanent filter, boolean lockedInPT) {
        this(new StaticValue(power), new StaticValue(toughness), duration, filter, lockedInPT);
    }
View Full Code Here


            for (Permanent perm: game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {
                objects.add(perm.getId());
            }
        }
        if (lockedInPT) {
            power = new StaticValue(power.calculate(game, source, this));
            toughness = new StaticValue(toughness.calculate(game, source, this));
        }
    }
View Full Code Here

    protected DynamicValue amount;
    protected boolean optional;
    protected boolean upTo;

    public DrawCardTargetEffect(int amount) {
        this(new StaticValue(amount));
    }
View Full Code Here

    public DrawCardTargetEffect(int amount) {
        this(new StaticValue(amount));
    }
    public DrawCardTargetEffect(int amount, boolean optional) {
        this(new StaticValue(amount), optional);
    }
View Full Code Here

    private FilterPermanent filter;
    private DynamicValue amount;

    public DamageAllEffect(int amount, FilterPermanent filter) {
        this(new StaticValue(amount), filter);
    }
View Full Code Here

    protected DynamicValue amount;
    protected boolean randomDiscard;

    public DiscardControllerEffect(int amount) {
        this(new StaticValue(amount));
    }
View Full Code Here

    public DiscardControllerEffect(int amount) {
        this(new StaticValue(amount));
    }

    public DiscardControllerEffect(int amount, boolean randomDiscard) {
        this(new StaticValue(amount), randomDiscard);
    }
View Full Code Here

        this(filter, TargetController.OPPONENT);
    }
  
    public DiscardCardYouChooseTargetEffect(TargetController targetController, int numberCardsToReveal) {
        this(new FilterCard("one card"), targetController,
                new StaticValue(numberCardsToReveal, new StringBuilder(CardUtil.numberToText(numberCardsToReveal)).append(" cards").toString()));
    }
View Full Code Here

        this.targetController = targetController;
        this.filter = filter;
       
        this.revealAllCards = false;
        this.numberCardsToReveal = numberCardsToReveal;
        this.numberCardsToDiscard = new StaticValue(1);
       
        staticText = this.setText();       
    }
View Full Code Here

       
        staticText = this.setText();       
    }
   
    public DiscardCardYouChooseTargetEffect(FilterCard filter, TargetController targetController) {
        this(new StaticValue(1), filter, targetController);
    }
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.