forked from External/mage
Added Subtype option for FilterControlledPermanent
This commit is contained in:
parent
744bc4d999
commit
d46c0befbb
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue