Package mage.abilities.dynamicvalue

Examples of mage.abilities.dynamicvalue.IntPlusDynamicValue


        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


    }

    @Override
    public boolean apply(Game game, Ability source) {
        if (FerociousCondition.getInstance().apply(game, source)) {
            amount = new IntPlusDynamicValue(2, new ManacostVariableValue());
        }
        return super.apply(game, source);
    }
View Full Code Here

        // You may exile two green cards from your hand rather than pay Allosaurus Rider's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new ExileFromHandCost(new TargetCardInHand(2, filter))));

        // Allosaurus Rider's power and toughness are each equal to 1 plus the number of lands you control.
        DynamicValue onePlusControlledLands = new IntPlusDynamicValue(1, new PermanentsOnBattlefieldCount(new FilterControlledLandPermanent("lands you control")));
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(onePlusControlledLands, Duration.EndOfGame)));

    }
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.IntPlusDynamicValue

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.