forked from External/mage
* apply regex to change public copy constructors to protected * cleanup code using now protected constructors * fix manaBuilder weird casting of Mana into ConditionalMana
41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
|
|
package mage.target.common;
|
|
|
|
import mage.filter.StaticFilters;
|
|
import mage.filter.common.FilterLandPermanent;
|
|
import mage.target.TargetPermanent;
|
|
|
|
/**
|
|
* @author BetaSteward_at_googlemail.com
|
|
*/
|
|
public class TargetLandPermanent extends TargetPermanent {
|
|
|
|
public TargetLandPermanent() {
|
|
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);
|
|
}
|
|
|
|
protected TargetLandPermanent(final TargetLandPermanent target) {
|
|
super(target);
|
|
}
|
|
|
|
@Override
|
|
public TargetLandPermanent copy() {
|
|
return new TargetLandPermanent(this);
|
|
}
|
|
}
|