refactored SupertypePredicate to be part of SuperType

This commit is contained in:
Evan Kranzler 2020-01-06 19:21:27 -05:00
parent d919818daa
commit ecf26585b5
190 changed files with 341 additions and 529 deletions

View file

@ -5,7 +5,6 @@ package mage.target.common;
import mage.constants.SuperType;
import mage.filter.common.FilterLandPermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.SupertypePredicate;
/**
*
@ -15,7 +14,7 @@ public class TargetNonBasicLandPermanent extends TargetLandPermanent {
public TargetNonBasicLandPermanent() {
this.filter = new FilterLandPermanent();
this.filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
this.filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
this.targetName = "nonbasic land";
}