mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
add non-basic helpers to FilterLandPermanent
This commit is contained in:
parent
b919e5907b
commit
9a2d209cd8
10 changed files with 23 additions and 109 deletions
|
|
@ -30,8 +30,10 @@ package mage.filter.common;
|
|||
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -53,6 +55,18 @@ public class FilterLandPermanent extends FilterPermanent {
|
|||
this.add(new CardTypePredicate(CardType.LAND));
|
||||
this.add(new SubtypePredicate(subtype));
|
||||
}
|
||||
|
||||
public static FilterLandPermanent nonbasicLand() {
|
||||
FilterLandPermanent filter = new FilterLandPermanent("nonbasic land");
|
||||
filter.add(Predicates.not(new SupertypePredicate("Basic")));
|
||||
return filter;
|
||||
}
|
||||
|
||||
public static FilterLandPermanent nonbasicLands() {
|
||||
FilterLandPermanent filter = new FilterLandPermanent("nonbasic lands");
|
||||
filter.add(Predicates.not(new SupertypePredicate("Basic")));
|
||||
return filter;
|
||||
}
|
||||
|
||||
public FilterLandPermanent(final FilterLandPermanent filter) {
|
||||
super(filter);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue