Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.ManacostVariableValue


        this.expansionSetCode = "C13";

        this.color.setBlue(true);

        // Each player draws X cards.
        this.getSpellAbility().addEffect(new DrawCardAllEffect(new ManacostVariableValue()));
    }
View Full Code Here


        this.expansionSetCode = "CHK";
        this.subtype.add("Spirit");
        this.color.setRed(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new ManacostVariableValue()), new ManaCostsImpl("{X}{R}"));
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

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

        // Lavalanche deals X damage to target player and each creature he or she controls.
        this.getSpellAbility().addEffect(new LavalancheEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetPlayer());
       
    }
View Full Code Here

        super(ownerId, 100, "Stroke of Genius", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{X}{2}{U}");
        this.expansionSetCode = "USG";
        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

        this.expansionSetCode = "USG";

        this.color.setRed(true);

        // Put X 1/1 red Goblin creature tokens onto the battlefield.
        this.getSpellAbility().addEffect(new CreateTokenEffect(new GoblinToken(), new ManacostVariableValue()));
    }
View Full Code Here

        this.expansionSetCode = "HOP";

        this.color.setRed(true);

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

        this.expansionSetCode = "TSP";

        this.color.setRed(true);

        // Conflagrate deals X damage divided as you choose among any number of target creatures and/or players.
        DynamicValue xValue = new ManacostVariableValue();
        this.getSpellAbility().addEffect(new DamageMultiEffect(xValue));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayerAmount(xValue));       
       
        // Flashback-{R}{R}, Discard X cards.
        Ability ability = new FlashbackAbility(new ManaCostsImpl("{R}{R}"), TimingRule.SORCERY);
View Full Code Here

        this.expansionSetCode = "5DN";

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {X}.
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetSpell());
        // Scry 2.
        this.getSpellAbility().addEffect(new ScryEffect(2));

    }
View Full Code Here

        this.expansionSetCode = "SOK";

        this.color.setWhite(true);

        // Hail of Arrows deals X damage divided as you choose among any number of target attacking creatures.
        this.getSpellAbility().addEffect(new DamageMultiEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetAttackingCreature(0, Integer.MAX_VALUE, new FilterAttackingCreature(), true));
    }
View Full Code Here

    public SwallowingPlague (UUID ownerId) {
        super(ownerId, 146, "Swallowing Plague", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{X}{B}{B}");
        this.expansionSetCode = "CHK";
        this.subtype.add("Arcane");
        this.color.setBlack(true);
        this.getSpellAbility().addEffect(new DamageTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addEffect(new GainLifeEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
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.