forked from External/mage
remove unnecessary filter constructors from TargetLandPermanent
This commit is contained in:
parent
56e9986b06
commit
6b2be185ce
35 changed files with 310 additions and 354 deletions
|
|
@ -2,7 +2,6 @@
|
|||
package mage.target.common;
|
||||
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterLandPermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
|
@ -14,20 +13,12 @@ public class TargetLandPermanent extends TargetPermanent {
|
|||
this(1);
|
||||
}
|
||||
|
||||
public TargetLandPermanent(FilterLandPermanent filter) {
|
||||
this(1, 1, filter, false);
|
||||
}
|
||||
|
||||
public TargetLandPermanent(int numTargets) {
|
||||
this(numTargets, numTargets);
|
||||
}
|
||||
|
||||
public TargetLandPermanent(int numTargets, int maxNumTargets) {
|
||||
this(numTargets, maxNumTargets, maxNumTargets > 1 ? StaticFilters.FILTER_LANDS : StaticFilters.FILTER_LAND, false);
|
||||
}
|
||||
|
||||
public TargetLandPermanent(int minNumTargets, int maxNumTargets, FilterLandPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
super(numTargets, maxNumTargets, maxNumTargets > 1 ? StaticFilters.FILTER_LANDS : StaticFilters.FILTER_LAND, false);
|
||||
}
|
||||
|
||||
protected TargetLandPermanent(final TargetLandPermanent target) {
|
||||
|
|
|
|||
|
|
@ -5,11 +5,12 @@ package mage.target.common;
|
|||
import mage.constants.SuperType;
|
||||
import mage.filter.common.FilterLandPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TargetNonBasicLandPermanent extends TargetLandPermanent {
|
||||
public class TargetNonBasicLandPermanent extends TargetPermanent {
|
||||
|
||||
private static final FilterLandPermanent filter = new FilterLandPermanent("nonbasic land");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue