Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.DestroyAllEffect


        this.expansionSetCode = "VMA";

        this.color.setBlack(true);

        // Destroy all green creatures.
        this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
    }
View Full Code Here


        this.color.setWhite(true);

        // {tap}, Sacrifice Scourglass: Destroy all permanents except for artifacts and lands. Activate this ability only during your upkeep.
        this.addAbility(new ConditionalActivatedAbility(Zone.BATTLEFIELD,
                new DestroyAllEffect(filter), new TapSourceCost()new IsStepCondition(PhaseStep.UPKEEP), null));
    }
View Full Code Here

    public BackToNature(UUID ownerId) {
        super(ownerId, 164, "Back to Nature", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{1}{G}");
        this.expansionSetCode = "M11";
        this.color.setGreen(true);
        this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
    }
View Full Code Here

        // Destroy target artifact you don't control.
        this.getSpellAbility().addTarget(new TargetArtifactPermanent(filter));
        this.getSpellAbility().addEffect(new DestroyTargetEffect());

        // Overload {4}{R} (You may cast this spell for its overload cost. If you do, change its text by replacing all instances of "target" with "each.")
        this.addAbility(new OverloadAbility(this, new DestroyAllEffect(filter), new ManaCostsImpl("{4}{R}"), TimingRule.SORCERY));

    }
View Full Code Here

        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(4)), false));

        // +1: Put three 1/1 white Soldier creature tokens onto the battlefield.
        this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new SoldierToken(), 3), 1));
        // -3: Destroy all creatures with power 4 or greater.
        this.addAbility(new LoyaltyAbility(new DestroyAllEffect(filter), -3));
        // -7: You get an emblem with "Creatures you control get +2/+2 and have flying."
        this.addAbility(new LoyaltyAbility(new GetEmblemEffect(new ElspethSunsChampionEmblem()), -7));
    }
View Full Code Here

        // If you've cast another white spell this turn, you may cast Patrician's Scorn without paying its mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new CastWhiteSpellThisTurnCondition()));
        this.addWatcher(new PatriciansScornWatcher());
        // Destroy all enchantments.
        this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterEnchantmentPermanent()));
    }
View Full Code Here

        this.expansionSetCode = "PCY";

        this.color.setBlack(true);

        // Destroy all creatures you don't control. They can't be regenerated.
        this.getSpellAbility().addEffect(new DestroyAllEffect(filter, true));
    }
View Full Code Here

        this.expansionSetCode = "GPT";

        this.color.setBlack(true);
        this.color.setWhite(true);

        this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
    }
View Full Code Here

        // Choose two -
        this.getSpellAbility().getModes().setMinModes(2);
        this.getSpellAbility().getModes().setMaxModes(2);
        // Destroy all artifacts;
        this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterArtifactPermanent("artifacts")));
        // or destroy all enchantments;
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyAllEffect(new FilterEnchantmentPermanent("enchantments")));
        this.getSpellAbility().getModes().addMode(mode);
        // or destroy all creatures with converted mana cost 3 or less;
        mode = new Mode();
        mode.getEffects().add(new DestroyAllEffect(filter3orLess));
        this.getSpellAbility().getModes().addMode(mode);
        // or destroy all creatures with converted mana cost 4 or greater.
        mode = new Mode();
        mode.getEffects().add(new DestroyAllEffect(filter4orMore));
        this.getSpellAbility().getModes().addMode(mode);
    }
View Full Code Here

        this.expansionSetCode = "ICE";

        this.color.setRed(true);

        // Destroy all white permanents.
        this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.DestroyAllEffect

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.