Examples of CardsInAllGraveyardsCount


Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

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

        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new CardsInAllGraveyardsCount(new FilterArtifactCard("artifacts")), Duration.EndOfGame)));
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

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

        // Undergrowth Scavenger enters the battlefield with a number of +1/+1 counters on it equal to the number of creature cards in all graveyards.
        Effect effect = new AddCountersSourceEffect(CounterType.P1P1.createInstance(0), new CardsInAllGraveyardsCount(new FilterCreatureCard()), true);
        effect.setText("with a number of +1/+1 counters on it equal to the number of creature cards in all graveyards");
        this.addAbility(new EntersBattlefieldAbility(effect));       
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

        this.expansionSetCode = "CSP";

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {2} plus an additional {2} for each card named Rune Snag in each graveyard.
        Effect effect = new CounterUnlessPaysEffect(new IntPlusDynamicValue(2, new MultipliedValue(new CardsInAllGraveyardsCount(filter), 2)));
        effect.setText("Counter target spell unless its controller pays {2} plus an additional {2} for each card named Rune Snag in each graveyard");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetSpell());
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

        this.expansionSetCode = "10E";
        this.subtype.add("Lhurgoyf");
        this.color.setBlack(true);
        this.power = new MageInt(0);
        this.toughness = new MageInt(0);
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new CardsInAllGraveyardsCount(new FilterCreatureCard("creature cards")), Duration.EndOfGame)));
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ColoredManaCost(ColoredManaSymbol.B)));
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

        this.toughness = new MageInt(0);

        // Bestow {2}{B}{B}
        this.addAbility(new BestowAbility(this, "{2}{B}{B}"));
        // Nighthowler and enchanted creature each get +X/+X, where X is the number of creature cards in all graveyards.
        DynamicValue graveCreatures = new CardsInAllGraveyardsCount(new FilterCreatureCard());
        Effect effect = new BoostSourceEffect(graveCreatures, graveCreatures, Duration.WhileOnBattlefield);
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
        effect = new BoostEnchantedEffect(graveCreatures, graveCreatures, Duration.WhileOnBattlefield);
        ability.addEffect(effect);
        this.addAbility(ability);
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

        this.color.setBlue(true);

        // Draw a card, then draw cards equal to the number of cards named Accumulated Knowledge in all graveyards.
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
        Effect effect = new DrawCardSourceControllerEffect(new CardsInAllGraveyardsCount(filter));
        effect.setText(", then draw cards equal to the number of cards named {source} in all graveyards");
        this.getSpellAbility().addEffect(effect);
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // Terravore's power and toughness are each equal to the number of land cards in all graveyards.
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(
                new CardsInAllGraveyardsCount(new FilterLandCard("land cards")), Duration.EndOfGame)));
    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

        this.toughness = new MageInt(0);

        // Haste
        this.addAbility(HasteAbility.getInstance());
        // Magnivore's power and toughness are each equal to the number of sorcery cards in all graveyards.
        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new CardsInAllGraveyardsCount(filter), Duration.EndOfGame)));


    }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

    public boolean apply(Game game, Ability source) {
        Permanent permanent = game.getPermanent(source.getSourceId());
        if (permanent != null) {
            Object obj = getValue(EntersBattlefieldEffect.SOURCE_CAST_SPELL_ABILITY);
            if (obj != null && obj instanceof SpellAbility) {
                CardsInAllGraveyardsCount instantsAndSorceries = new CardsInAllGraveyardsCount(new FilterInstantOrSorceryCard("instant or sorcery cards"));
                int instantsAndSorceriesCount = instantsAndSorceries.calculate(game, source, this);
                if (instantsAndSorceriesCount > 0) {
                    permanent.addCounters(CounterType.P1P1.createInstance(instantsAndSorceriesCount), game);
                }
            }
        }
View Full Code Here

Examples of mage.abilities.dynamicvalue.common.CardsInAllGraveyardsCount

        this.expansionSetCode = "MBS";
        this.subtype.add("Equipment");


        this.addAbility(new LivingWeaponAbility());
        CardsInAllGraveyardsCount value = new CardsInAllGraveyardsCount(new FilterCreatureCard());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(value, value)));
        this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(2)));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.