Examples of SupertypePredicate


Examples of mage.filter.predicate.mageobject.SupertypePredicate

        // This is called the "legend rule."

        if (legendary.size() > 1) {  //don't bother checking if less than 2 legends in play
            for (Permanent legend: legendary) {
                FilterPermanent filterLegendName = new FilterPermanent();
                filterLegendName.add(new SupertypePredicate("Legendary"));
                filterLegendName.add(new NamePredicate(legend.getName()));
                filterLegendName.add(new ControllerIdPredicate(legend.getControllerId()));
                if (getBattlefield().contains(filterLegendName, legend.getControllerId(), this, 2)) {
                    Player controller = this.getPlayer(legend.getControllerId());
                    if (controller != null) {
View Full Code Here

Examples of mage.filter.predicate.mageobject.SupertypePredicate

public class FilterBasicLandCard extends FilterCard {

    public FilterBasicLandCard() {
        super("basic land card");
        this.add(new CardTypePredicate(CardType.LAND));
        this.add(new SupertypePredicate("Basic"));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.SupertypePredicate

*/
public class TargetBasicLandCard extends TargetCard {

    public TargetBasicLandCard(Zone zone) {
        super(zone);
        filter.add(new SupertypePredicate("Basic"));
        filter.add(new CardTypePredicate(CardType.LAND));
    }
View Full Code Here

Examples of mage.filter.predicate.mageobject.SupertypePredicate

        if (sourceAbility.getFirstTarget() == null) {
            return 0;
        }

        FilterLandPermanent filter = new FilterLandPermanent();
        filter.add(Predicates.not(new SupertypePredicate("Basic")));
        filter.add(new ControllerIdPredicate(sourceAbility.getFirstTarget()));

        return game.getBattlefield().count(filter, sourceAbility.getSourceId(), sourceAbility.getControllerId(), game);
    }
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.