mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
Implemented Gideon's Company
This commit is contained in:
parent
a716e9f867
commit
708b1a6dc9
3 changed files with 65 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue