forked from External/mage
* describe targets: UntapTargetEffect * describe targets: SetBasePowerToughnessTargetEffect * cleanup text * describe targets: RegenerateTargetEffect * describe targets: PhaseOutTargetEffect * adjust text * remove superfluous param * describe targets: TapAllTargetPlayerControlsEffect * describe targets: TurnFaceUpTargetEffect * describe targets: TransformTargetEffect * describe targets: RemoveFromCombatTargetEffect * describe targets: DetainTargetEffect * cleanup DiscardHandTargetEffect * describe targets: DrawCardTargetEffect * describe targets: GainLifeTargetEffect * describe targets: LoseLifeTargetEffect * describe targets: ExchangeLifeTargetEffect * describe targets: DamageTargetControllerEffect
43 lines
1.2 KiB
Java
43 lines
1.2 KiB
Java
package mage.target.common;
|
|
|
|
import mage.filter.StaticFilters;
|
|
import mage.filter.common.FilterArtifactPermanent;
|
|
import mage.target.TargetPermanent;
|
|
|
|
/**
|
|
* @author ayratn
|
|
*/
|
|
public class TargetArtifactPermanent extends TargetPermanent {
|
|
|
|
public TargetArtifactPermanent() {
|
|
this(1);
|
|
}
|
|
|
|
public TargetArtifactPermanent(int numTargets) {
|
|
this(numTargets, numTargets);
|
|
}
|
|
|
|
public TargetArtifactPermanent(int minNumTargets, int maxNumTargets) {
|
|
this(minNumTargets, maxNumTargets,
|
|
(maxNumTargets > 1 ? StaticFilters.FILTER_PERMANENT_ARTIFACTS : StaticFilters.FILTER_PERMANENT_ARTIFACT),
|
|
false);
|
|
}
|
|
|
|
public TargetArtifactPermanent(FilterArtifactPermanent filter) {
|
|
this(1, 1, filter, false);
|
|
}
|
|
|
|
public TargetArtifactPermanent(int minNumTargets, int maxNumTargets, FilterArtifactPermanent filter, boolean notTarget) {
|
|
super(minNumTargets, maxNumTargets, filter, notTarget);
|
|
}
|
|
|
|
protected TargetArtifactPermanent(final TargetArtifactPermanent target) {
|
|
super(target);
|
|
}
|
|
|
|
@Override
|
|
public TargetArtifactPermanent copy() {
|
|
return new TargetArtifactPermanent(this);
|
|
}
|
|
|
|
}
|