Examples of CardTypePredicate


Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("artifact you control");
    }

    public FilterControlledArtifactPermanent(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.ARTIFACT));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("artifact or enchantment");
    }

    public FilterArtifactOrEnchantmentPermanent(String name) {
        super(name);
        this.add(Predicates.or(new CardTypePredicate(CardType.ARTIFACT),new CardTypePredicate(CardType.ENCHANTMENT)));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("creature you control");
    }

    public FilterControlledCreaturePermanent(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.CREATURE));
    }   
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

    }   
   

    public FilterControlledCreaturePermanent(String subtype, String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.CREATURE));
        this.add(new SubtypePredicate(subtype));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

    public FilterPermanentCard(String name) {
        super(name);
        this.add(
                Predicates.or(
                new CardTypePredicate(CardType.ARTIFACT),
                new CardTypePredicate(CardType.CREATURE),
                new CardTypePredicate(CardType.ENCHANTMENT),
                new CardTypePredicate(CardType.LAND),
                new CardTypePredicate(CardType.PLANESWALKER)));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("land card");
    }

    public FilterLandCard(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.LAND));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            FilterCard filter = new FilterCard("red instant or sorcery card from your graveyard to play");
            filter.add(new ColorPredicate(ObjectColor.RED));
            filter.add(Predicates.or(
                    new CardTypePredicate(CardType.INSTANT),
                    new CardTypePredicate(CardType.SORCERY)));

            String message = "Play red instant or sorcery card from your graveyard without paying its mana cost?";
            Set<Card> cards = player.getGraveyard().getCards(filter, game);
            TargetCardInGraveyard target = new TargetCardInGraveyard(filter);
            while (!cards.isEmpty() && player.chooseUse(outcome, message, game)) {
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("land");
    }

    public FilterLandPermanent(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.LAND));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

    }

    public FilterCreatureOrPlaneswalkerPermanent(String name) {
        super(name);
        this.add(Predicates.or(
                new CardTypePredicate(CardType.CREATURE),
                new CardTypePredicate(CardType.PLANESWALKER)));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.CardTypePredicate

        this("creature card");
    }

    public FilterCreatureCard(String name) {
        super(name);
        this.add(new CardTypePredicate(CardType.CREATURE));
    }
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.