Package mage.abilities.dynamicvalue.common

Examples of mage.abilities.dynamicvalue.common.ManacostVariableValue


        // {3}{U}{U}: Shuffle your library.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ShuffleLibrarySourceEffect(), new ManaCostsImpl<>("{3}{U}{U}")));
       
        // {X}: Look at the top X cards of your library, then put them back in any order.
        Effect effect = new LookLibraryControllerEffect(new ManacostVariableValue());
        effect.setText("Look at the top X cards of your library, then put them back in any order");
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("X")));
    }
View Full Code Here


        this.expansionSetCode = "ONS";

        this.color.setRed(true);

        // Starstorm deals X damage to each creature.
        this.getSpellAbility().addEffect(new DamageAllEffect(new ManacostVariableValue(), new FilterCreaturePermanent()));
        // Cycling {3}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{3}")));
    }
View Full Code Here

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

        // {X}{W}, {T}: Ballista Squad deals X damage to target attacking or blocking creature.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(new ManacostVariableValue()), new ManaCostsImpl("{X}{W}"));
        ability.addCost(new TapSourceCost());
        ability.addTarget(new TargetAttackingOrBlockingCreature());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "PTK";

        this.color.setRed(true);

        // Rolling Earthquake deals X damage to each creature without horsemanship and each player.
        this.getSpellAbility().addEffect(new DamageEverythingEffect(new ManacostVariableValue(), filter));
    }
View Full Code Here

        this.expansionSetCode = "7ED";

        this.color.setGreen(true);

        // Target player gains X life.
        this.getSpellAbility().addEffect(new GainLifeTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

        this.color.setRed(true);

        // Crater's Claws deals X damage to target creature or player.
        // <i>Ferocious</i> - Crater's Claws deals X plus 2 damage to that creature or player instead if you control a creature with power 4 or greater.
        this.getSpellAbility().addEffect(new CratersClawsDamageTargetEffect(new ManacostVariableValue()));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    }
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

        // Reach
        this.addAbility(ReachAbility.getInstance());
        // {X}{G}{G}: Silklash Spider deals X damage to each creature with flying.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new DamageAllEffect(new ManacostVariableValue(), filter),
                new ManaCostsImpl("{X}{G}{G}")));
    }
View Full Code Here

        this.color.setWhite(true);

        // Creatures you control get +2/+2 until end of turn.
        this.getSpellAbility().addEffect(new BoostControlledEffect(2,2, Duration.EndOfTurn));
        // Reinforce X-{X}{W}{W}
        this.addAbility(new ReinforceAbility(new ManacostVariableValue(), new ManaCostsImpl("{X}{W}{W}")));
    }
View Full Code Here

        this.expansionSetCode = "AVR";

        this.color.setWhite(true);

        // Put X 4/4 white Angel creature tokens with flying onto the battlefield.
        this.getSpellAbility().addEffect(new CreateTokenEffect(new AngelToken(), new ManacostVariableValue()));

        // Miracle {X}{W}{W}
        this.addAbility(new MiracleAbility(this, new ManaCostsImpl("{X}{W}{W}")));
    }
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.