Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.ManacostVariableValue


        this.color.setGreen(true);
        this.color.setBlue(true);

        // Creatures you control become X/X until end of turn.
        DynamicValue variableMana = new ManacostVariableValue();
        this.getSpellAbility().addEffect(new SetPowerToughnessAllEffect(variableMana, variableMana, Duration.EndOfTurn, new FilterControlledCreaturePermanent("Creatures you control"), true));
    }
View Full Code Here


        this.expansionSetCode = "LEA";

        this.color.setBlack(true);

        // Target creature gets +X/+0 until end of turn.
        this.getSpellAbility().addEffect(new BoostTargetEffect(new ManacostVariableValue(), new StaticValue(0), Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here

        this.expansionSetCode = "LEA";

        this.color.setBlue(true);

        // Target player draws X cards.
        this.getSpellAbility().addEffect(new DrawCardTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetPlayer());
       
    }
View Full Code Here

        subtype.add("Elemental");
        color.setRed(true);
        color.setBlack(true);
        power = new MageInt(2);
        toughness = new MageInt(2);
        addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(new ManacostVariableValue(), new StaticValue(0), Duration.EndOfTurn), new ManaCostsImpl("{X}")));
    }
View Full Code Here

        this.expansionSetCode = "M13";

        this.color.setRed(true);

        // Magmaquake deals X damage to each creature without flying and each planeswalker.
        this.getSpellAbility().addEffect(new DamageAllEffect(new ManacostVariableValue(), filter));
    }
View Full Code Here

    public SnakeBasket(UUID ownerId) {
        super(ownerId, 155, "Snake Basket", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{4}");
        this.expansionSetCode = "VIS";

        // {X}, Sacrifice Snake Basket: Put X 1/1 green Snake creature tokens onto the battlefield. Activate this ability only any time you could cast a sorcery.
        Effect effect = new CreateTokenEffect(new SnakeToken(), new ManacostVariableValue());
        Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{X}"));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

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

        // {X}: Crypt Rats deals X damage to each creature and each player. Spend only black mana this way.
        Effect effect = new DamageEverythingEffect(new ManacostVariableValue(), new FilterPermanent());
        effect.setText("{this} deals X damage to each creature and each player. Spend only black mana this way");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect,new ManaCostsImpl("{X}"));
        VariableCost variableCost = ability.getManaCostsToPay().getVariableCosts().get(0);
        if (variableCost instanceof VariableManaCost) {
            ((VariableManaCost) variableCost).setFilter(filterBlack);
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(0);
        this.toughness = new MageInt(0);

        // Ivy Elemental enters the battlefield with X +1/+1 counters on it.
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(), new ManacostVariableValue(), true), "with X +1/+1 counters on it"));
    }
View Full Code Here

        this.expansionSetCode = "M13";

        this.color.setRed(true);

        // Volcanic Geyser deals X damage to target creature or player.
        this.getSpellAbility().addEffect(new DamageTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    }
View Full Code Here

        return new DiabolicRevelationEffect(this);
    }

    @Override
    public boolean apply(Game game, Ability source) {
        int amount = new ManacostVariableValue().calculate(game, source, this);
        TargetCardInLibrary target = new TargetCardInLibrary(0, amount, new FilterCard());

        Player player = game.getPlayer(source.getControllerId());
        if (player == null) {
            return false;
View Full Code Here

TOP

Related Classes of mage.abilities.dynamicvalue.common.ManacostVariableValue

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.