Package mage.filter.common

Examples of mage.filter.common.FilterEnchantmentPermanent


        this.color.setWhite(true);

        // Destroy target enchantment. You gain 3 life.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        Target target = new TargetPermanent(new FilterEnchantmentPermanent());
        this.getSpellAbility().addTarget(target);
        this.getSpellAbility().addEffect(new GainLifeEffect(3));
    }
View Full Code Here


        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);
View Full Code Here

TOP

Related Classes of mage.filter.common.FilterEnchantmentPermanent

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.