Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.StaticValue


        Player player = game.getPlayer(source.getFirstTarget());
        Player controller = game.getPlayer(source.getControllerId());
        Card sourceCard = game.getCard(source.getSourceId());
        if (player != null && controller != null) {
            if (revealAllCards) {
                this.numberCardsToReveal = new StaticValue(player.getHand().size());
            }
            int numberToReveal = this.numberCardsToReveal.calculate(game, source, this);
            if (numberToReveal > 0) {
                Cards revealedCards = new CardsImpl(Zone.HAND);               
                numberToReveal = Math.min(player.getHand().size(), numberToReveal);
View Full Code Here


        this.randomDiscard = randomDiscard;
        this.amount = amount;
    }

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

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

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

    }
   
    public DiscardTargetEffect(int amount, boolean randomDiscard, boolean setTargetPointer) {
        super(Outcome.Discard);
        this.randomDiscard = randomDiscard;
        this.amount = new StaticValue(amount);
        this.setTargetPointer = setTargetPointer;
    }
View Full Code Here

    private DynamicValue power;
    private DynamicValue toughness;
    private boolean lockedIn;

    public BoostSourceEffect(int power, int toughness, Duration duration) {
        this(new StaticValue(power), new StaticValue(toughness), duration, false);
    }
View Full Code Here

    @Override
    public void init(Ability source, Game game) {
        super.init(source, game);
        getAffectedObjects().add(source.getSourceId());
        if (lockedIn) {
            power = new StaticValue(power.calculate(game, source, this));
            toughness = new StaticValue(toughness.calculate(game, source, this));
        }
    }
View Full Code Here

            FilterCard pickFilter, Zone targetZoneLookedCards, boolean putOnTop, boolean reveal) {
        this(numberOfCards, mayShuffleAfter, numberToPick, pickFilter, targetZoneLookedCards, putOnTop, reveal, false);
    }

    public LookLibraryAndPickControllerEffect(int numberOfCards, int numberToPick, FilterCard pickFilter, boolean upTo) {
        this(new StaticValue(numberOfCards), false, new StaticValue(numberToPick), pickFilter, Zone.LIBRARY, false, true, upTo);
    }
View Full Code Here

        this(new StaticValue(numberOfCards), false, new StaticValue(numberToPick), pickFilter, Zone.LIBRARY, false, true, upTo);
    }

    public LookLibraryAndPickControllerEffect(int numberOfCards, int numberToPick, FilterCard pickFilter, boolean reveal, boolean upTo,
            Zone targetZonePickedCards, boolean optional) {
        this(new StaticValue(numberOfCards), false, new StaticValue(numberToPick), pickFilter, Zone.LIBRARY, false, reveal, upTo, targetZonePickedCards, optional);

    }
View Full Code Here

    public SacrificeAllEffect(FilterControlledPermanent filter) {
        this(1, filter);
    }
    public SacrificeAllEffect(int amount, FilterControlledPermanent filter) {
        this(new StaticValue(amount), filter);
    }
View Full Code Here

    private DynamicValue amount;
    private boolean tapped;
    private boolean attacking;

    public CreateTokenTargetEffect(Token token) {
        this(token, new StaticValue(1));
    }
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.