Package mage.abilities.dynamicvalue

Examples of mage.abilities.dynamicvalue.DynamicValue


     

        // Vigilance
        this.addAbility(VigilanceAbility.getInstance());
        // Cantivore's power and toughness are each equal to the number of enchantment cards in all graveyards.
        DynamicValue value = (new CardsInAllGraveyardsCount(filter));
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(value , Duration.EndOfGame)));
    }
View Full Code Here


        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

        // Trample
        this.addAbility(TrampleAbility.getInstance());
       
        // Altar Golem's power and toughness are each equal to the number of creatures on the battlefield.
        DynamicValue amount = new PermanentsOnBattlefieldCount(new FilterCreaturePermanent("creatures in play"));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new SetPowerToughnessSourceEffect(amount, Duration.WhileOnBattlefield)));
       
        // Altar Golem doesn't untap during your untap step.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new SkipUntapSourceEffect()));
       
View Full Code Here

        // Choose target creature. Put the top four cards of your library into your graveyard, then that creature gets -1/-1 until end of turn for each land card in your graveyard.
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        Effect effect = new PutTopCardOfLibraryIntoGraveControllerEffect(4);
        effect.setText("Choose target creature. Put the top four cards of your library into your graveyard");
        this.getSpellAbility().addEffect(effect);
        DynamicValue landCards = new SignInversionDynamicValue(new CardsInControllerGraveyardCount(new FilterLandCard()));
        this.getSpellAbility().addEffect(new BoostTargetEffect(landCards, landCards, Duration.EndOfTurn));
    }
View Full Code Here

        super(ownerId, 159, "Heroes' Podium", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{5}");
        this.expansionSetCode = "BNG";
        this.supertype.add("Legendary");

        // Each legendary creature you control gets +1/+1 for each other legendary creature you control.
        DynamicValue xValue = new HeroesPodiumLegendaryCount();
        Effect effect = new BoostControlledEffect(xValue, xValue, Duration.WhileOnBattlefield, filter, false);
        effect.setText("Each legendary creature you control gets +1/+1 for each other legendary creature you control");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
        // {X}, {T}: Look at the top X cards of your library. You may reveal a legendary creature card from among them and put it into your hand. Put the rest on the bottom of your library in a random order.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new HeroesPodiumEffect(), new ManaCostsImpl("{X}"));
View Full Code Here

        this.expansionSetCode = "MMA";

        this.color.setBlack(true);

        // Each player loses X life, discards X cards, sacrifices X creatures, then sacrifices X lands.
        DynamicValue xValue = new ManacostVariableValue();
        this.getSpellAbility().addEffect(new LoseLifeAllPlayersEffect(xValue));
        Effect effect = new DiscardEachPlayerEffect(xValue, false);
        effect.setText(", discards X cards");
        this.getSpellAbility().addEffect(effect);
        effect = new SacrificeAllEffect(xValue, new FilterControlledCreaturePermanent("creatures"));
View Full Code Here

TOP

Related Classes of mage.abilities.dynamicvalue.DynamicValue

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.