Added Subtype option for FilterControlledPermanent

This commit is contained in:
Plopman 2013-09-07 17:52:09 +02:00
parent 744bc4d999
commit d46c0befbb

View file

@ -30,6 +30,7 @@ package mage.filter.common;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.filter.predicate.permanent.ControllerPredicate;
/**
@ -47,6 +48,13 @@ public class FilterControlledPermanent extends FilterPermanent {
this.add(new ControllerPredicate(TargetController.YOU));
}
public FilterControlledPermanent(String subtype, String name) {
super(name);
this.add(new SubtypePredicate(subtype));
this.add(new ControllerPredicate(TargetController.YOU));
}
public FilterControlledPermanent(final FilterControlledPermanent filter) {
super(filter);
}