Package mage.abilities.costs.common

Examples of mage.abilities.costs.common.PayVariableLifeCost


        this.expansionSetCode = "EXO";

        this.color.setBlack(true);

        // 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


        this.color.setRed(true);
        this.color.setBlack(true);

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

        // Fire Covenant deals X damage divided as you choose among any number of target creatures.
        DynamicValue xValue = new GetXValue();
        this.getSpellAbility().addEffect(new DamageMultiEffect(xValue));
        this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount(xValue));
View Full Code Here

   
    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            VariableCost cost = new PayVariableLifeCost();
            int xValue = cost.announceXValue(source, game);
            cost.getFixedCostsFromAnnouncedValue(xValue).pay(source, game, source.getSourceId(), source.getControllerId(), true);
           
            Cards cards = new CardsImpl(Zone.PICK);
            int count = Math.min(player.getLibrary().size(), xValue);
            for (int i = 0; i < count; i++) {
                Card card = player.getLibrary().removeFromTop(game);
View Full Code Here

        this.expansionSetCode = "C13";

        this.color.setBlack(true);

        // As an additional cost to cast Toxic Deluge, pay X life.
        this.getSpellAbility().addCost(new PayVariableLifeCost(true));
        // All creatures get -X/-X until end of turn.
        DynamicValue xValue = new SignInversionDynamicValue(new GetXValue());
        this.getSpellAbility().addEffect(new BoostAllEffect(xValue, xValue, Duration.EndOfTurn, new FilterCreaturePermanent("All creatures"), false,
                null, true));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.costs.common.PayVariableLifeCost

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.