Package mage.filter.common

Examples of mage.filter.common.FilterArtifactOrEnchantmentPermanent


        this.power = new MageInt(2);
        this.toughness = new MageInt(1);

        // When Reclamation Sage enters the battlefield, you may destroy target artifact or enchantment.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), true);
        ability.addTarget(new TargetPermanent(new FilterArtifactOrEnchantmentPermanent()));
        this.addAbility(ability);
    }
View Full Code Here


        this.getSpellAbility().addEffect(new DestroyTargetEffect());
       
        // <strong>*</strong> Destroy target artifact or enchantment.
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        mode.getTargets().add(new TargetPermanent(new FilterArtifactOrEnchantmentPermanent()));
        this.getSpellAbility().addMode(mode);
       
        // <strong>*</strong> Draw two cards, then discard a card.
        mode = new Mode();
        mode.getEffects().add(new DrawDiscardControllerEffect(2,1));
View Full Code Here

        // You may discard a Plains card rather than pay Abolish's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new DiscardTargetCost(new TargetCardInHand(filterCost))));

        // Destroy target artifact or enchantment.
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetPermanent(new FilterArtifactOrEnchantmentPermanent()));
    }
View Full Code Here

TOP

Related Classes of mage.filter.common.FilterArtifactOrEnchantmentPermanent

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.