Implemented Gideon's Company

This commit is contained in:
Evan Kranzler 2019-04-11 22:05:56 -04:00
parent a716e9f867
commit 708b1a6dc9
3 changed files with 65 additions and 1 deletions

View file

@ -3,11 +3,12 @@
package mage.filter.common;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.filter.predicate.mageobject.SubtypePredicate;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class FilterPlaneswalkerPermanent extends FilterPermanent {
@ -16,6 +17,11 @@ public class FilterPlaneswalkerPermanent extends FilterPermanent {
this("planeswalker");
}
public FilterPlaneswalkerPermanent(SubType subType) {
this(subType.getDescription() + " planeswalker");
this.add(new SubtypePredicate(subType));
}
public FilterPlaneswalkerPermanent(String name) {
super(name);
this.add(new CardTypePredicate(CardType.PLANESWALKER));