forked from External/mage
remove some more unnecessary filter arguments from target constructors
This commit is contained in:
parent
15ba1c84ec
commit
9e364e027e
27 changed files with 140 additions and 209 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package mage.target.common;
|
||||
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterEnchantmentPermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
|
@ -13,20 +12,12 @@ public class TargetEnchantmentPermanent extends TargetPermanent {
|
|||
this(1);
|
||||
}
|
||||
|
||||
public TargetEnchantmentPermanent(FilterEnchantmentPermanent filter) {
|
||||
this(1, 1, filter, false);
|
||||
}
|
||||
|
||||
public TargetEnchantmentPermanent(int numTargets) {
|
||||
this(numTargets, numTargets);
|
||||
}
|
||||
|
||||
public TargetEnchantmentPermanent(int minNumTargets, int maxNumTargets) {
|
||||
this(minNumTargets, maxNumTargets, StaticFilters.FILTER_PERMANENT_ENCHANTMENT, false);
|
||||
}
|
||||
|
||||
public TargetEnchantmentPermanent(int minNumTargets, int maxNumTargets, FilterEnchantmentPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
super(minNumTargets, maxNumTargets, StaticFilters.FILTER_PERMANENT_ENCHANTMENT, false);
|
||||
}
|
||||
|
||||
protected TargetEnchantmentPermanent(final TargetEnchantmentPermanent target) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package mage.target.common;
|
||||
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
|
@ -13,10 +12,6 @@ public class TargetNonlandPermanent extends TargetPermanent {
|
|||
this(1);
|
||||
}
|
||||
|
||||
public TargetNonlandPermanent(FilterNonlandPermanent filter) {
|
||||
this(1, 1, filter, false);
|
||||
}
|
||||
|
||||
public TargetNonlandPermanent(int numTargets) {
|
||||
this(numTargets, numTargets);
|
||||
}
|
||||
|
|
@ -26,11 +21,7 @@ public class TargetNonlandPermanent extends TargetPermanent {
|
|||
}
|
||||
|
||||
public TargetNonlandPermanent(int minNumTargets, int maxNumTargets, boolean notTarget) {
|
||||
this(minNumTargets, maxNumTargets, (maxNumTargets > 1 ? StaticFilters.FILTER_PERMANENTS_NON_LAND : StaticFilters.FILTER_PERMANENT_NON_LAND), notTarget);
|
||||
}
|
||||
|
||||
public TargetNonlandPermanent(int minNumTargets, int maxNumTargets, FilterNonlandPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
super(minNumTargets, maxNumTargets, maxNumTargets > 1 ? StaticFilters.FILTER_PERMANENTS_NON_LAND : StaticFilters.FILTER_PERMANENT_NON_LAND, notTarget);
|
||||
}
|
||||
|
||||
protected TargetNonlandPermanent(final TargetNonlandPermanent target) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package mage.target.common;
|
||||
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterPlaneswalkerPermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
|
@ -10,23 +9,15 @@ import mage.target.TargetPermanent;
|
|||
public class TargetPlaneswalkerPermanent extends TargetPermanent {
|
||||
|
||||
public TargetPlaneswalkerPermanent() {
|
||||
this(1, 1, StaticFilters.FILTER_PERMANENT_PLANESWALKER, false);
|
||||
}
|
||||
|
||||
public TargetPlaneswalkerPermanent(FilterPlaneswalkerPermanent filter) {
|
||||
this(1, 1, filter, false);
|
||||
this(1);
|
||||
}
|
||||
|
||||
public TargetPlaneswalkerPermanent(int numTargets) {
|
||||
this(numTargets, numTargets, StaticFilters.FILTER_PERMANENT_PLANESWALKER, false);
|
||||
this(numTargets, numTargets);
|
||||
}
|
||||
|
||||
public TargetPlaneswalkerPermanent(int minNumTargets, int maxNumTargets) {
|
||||
this(minNumTargets, maxNumTargets, StaticFilters.FILTER_PERMANENT_PLANESWALKER, false);
|
||||
}
|
||||
|
||||
public TargetPlaneswalkerPermanent(int minNumTargets, int maxNumTargets, FilterPlaneswalkerPermanent filter, boolean notTarget) {
|
||||
super(minNumTargets, maxNumTargets, filter, notTarget);
|
||||
super(minNumTargets, maxNumTargets, StaticFilters.FILTER_PERMANENT_PLANESWALKER, false);
|
||||
}
|
||||
|
||||
private TargetPlaneswalkerPermanent(final TargetPlaneswalkerPermanent target) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue