Package mage.filter.predicate.other

Examples of mage.filter.predicate.other.PlayerIdPredicate


        planeswalkerFilter = new FilterPlaneswalkerPermanent();
        planeswalkerFilter.add(Predicates.or(permanentPredicates));

        ArrayList<Predicate<Player>> playerPredicates = new ArrayList<Predicate<Player>>();
        for (UUID defenderId : defenders) {
            playerPredicates.add(new PlayerIdPredicate(defenderId));
        }
        playerFilter = new FilterPlayer();
        playerFilter.add(Predicates.or(playerPredicates));
    }
View Full Code Here


    }

    private static FilterInPlay createFilter(FilterCreaturePermanent filter) {
        FilterCreatureOrPlayer newfilter = new FilterCreatureOrPlayer(filter.getMessage());
        newfilter.setCreatureFilter(filter);
        newfilter.getPlayerFilter().add(new PlayerIdPredicate(UUID.randomUUID()));
        return newfilter;
    }
View Full Code Here

TOP

Related Classes of mage.filter.predicate.other.PlayerIdPredicate

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.