Package mage.abilities.dynamicvalue

Examples of mage.abilities.dynamicvalue.MultipliedValue


        this.expansionSetCode = "CSP";

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {2} plus an additional {2} for each card named Rune Snag in each graveyard.
        Effect effect = new CounterUnlessPaysEffect(new IntPlusDynamicValue(2, new MultipliedValue(new CardsInAllGraveyardsCount(filter), 2)));
        effect.setText("Counter target spell unless its controller pays {2} plus an additional {2} for each card named Rune Snag in each graveyard");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetSpell());
    }
View Full Code Here


        this.color.setWhite(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // {1}, Reveal X white cards from your hand, Sacrifice Martyr of Sands: You gain three times X life.
        Effect effect = new GainLifeEffect(new MultipliedValue(new RevealTargetFromHandCostCount(), 3));
        effect.setText("You gain three times X life.");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}"));
        ability.addCost(new RevealTargetFromHandCost(new TargetCardInHand(0, Integer.MAX_VALUE, filter)));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
View Full Code Here

        this.color.setRed(true);

        // Sweep - Return any number of Mountains you control to their owner's hand. Barrel Down Sokenzan deals damage to target creature equal to twice the number of Mountains returned this way.
        this.getSpellAbility().addEffect(new SweepEffect("Mountain"));
        DynamicValue sweepValue = new MultipliedValue(new SweepNumber("Mountain", false), 2);
        this.getSpellAbility().addEffect(new DamageTargetEffect(sweepValue));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here

        // Cumulative upkeep {G}
        this.addAbility(new CumulativeUpkeepAbility(new ManaCostsImpl("{G}")));
        // {2}{G}, Pay 3 life for each velocity counter on Tornado: Destroy target permanent and put a velocity counter on Tornado. Activate this ability only once each turn.
        Ability ability = new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{2}{G}"));
        DynamicValue lifeToPayAmount = new MultipliedValue(new CountersCount(CounterType.VELOCITY), 3);
        ability.addCost(new PayLifeCost(lifeToPayAmount, "3 life for each velocity counter on {source}"));
        ability.addTarget(new TargetPermanent());
        Effect effect = new AddCountersSourceEffect(CounterType.VELOCITY.createInstance());
        effect.setText("and put a velocity counter on {source}");
        ability.addEffect(effect);
View Full Code Here

}

class DamiaSageOfStoneTriggeredAbility extends BeginningOfUpkeepTriggeredAbility {
   
    DamiaSageOfStoneTriggeredAbility() {
        super(new DrawCardSourceControllerEffect(new IntPlusDynamicValue(7, new MultipliedValue(new CardsInControllerHandCount(), -1))), TargetController.YOU, false);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.dynamicvalue.MultipliedValue

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.