foul-magics/Mage/src/main/java/mage/target/common/TargetLandPermanent.java
Susucre f75b1c9f0a
Code cleanup: protect all copy constructors (#10750)
* apply regex to change public copy constructors to protected
* cleanup code using now protected constructors
* fix manaBuilder weird casting of Mana into ConditionalMana
2023-08-04 19:34:58 -04:00

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);
}
}