foul-magics/Mage/src/main/java/mage/target/common/TargetNonlandPermanent.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

44 lines
1.2 KiB
Java

package mage.target.common;
import mage.filter.StaticFilters;
import mage.filter.common.FilterNonlandPermanent;
import mage.target.TargetPermanent;
/**
* @author BetaSteward_at_googlemail.com
*/
public class TargetNonlandPermanent extends TargetPermanent {
public TargetNonlandPermanent() {
this(1);
}
public TargetNonlandPermanent(FilterNonlandPermanent filter) {
this(1, 1, filter, false);
}
public TargetNonlandPermanent(int numTargets) {
this(numTargets, numTargets);
}
public TargetNonlandPermanent(int minNumTargets, int maxNumTargets) {
this(minNumTargets, maxNumTargets, false);
}
public TargetNonlandPermanent(int minNumTargets, int maxNumTargets, boolean notTarget) {
this(minNumTargets, maxNumTargets, StaticFilters.FILTER_PERMANENT_NON_LAND, notTarget);
}
public TargetNonlandPermanent(int minNumTargets, int maxNumTargets, FilterNonlandPermanent filter, boolean notTarget) {
super(minNumTargets, maxNumTargets, filter, notTarget);
}
protected TargetNonlandPermanent(final TargetNonlandPermanent target) {
super(target);
}
@Override
public TargetNonlandPermanent copy() {
return new TargetNonlandPermanent(this);
}
}