rewrite with staticfilter

This commit is contained in:
igoudt 2018-01-07 22:39:31 +01:00
parent 6d16e41ec3
commit 27ec3431ee

View file

@ -28,6 +28,7 @@
package mage.target.common; package mage.target.common;
import mage.filter.StaticFilters;
import mage.filter.common.FilterControlledPermanent; import mage.filter.common.FilterControlledPermanent;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
@ -38,11 +39,11 @@ import mage.target.TargetPermanent;
public class TargetControlledPermanent extends TargetPermanent { public class TargetControlledPermanent extends TargetPermanent {
public TargetControlledPermanent() { public TargetControlledPermanent() {
this(1, 1, new FilterControlledPermanent(), false); this(1, 1, StaticFilters.FILTER_CONTROLLED_PERMANENT, false);
} }
public TargetControlledPermanent(int numTargets) { public TargetControlledPermanent(int numTargets) {
this(numTargets, numTargets, new FilterControlledPermanent(), false); this(numTargets, numTargets, StaticFilters.FILTER_CONTROLLED_PERMANENT, false);
} }
public TargetControlledPermanent(FilterControlledPermanent filter) { public TargetControlledPermanent(FilterControlledPermanent filter) {