forked from External/mage
[filters] replaced Name condition with Predicate
This commit is contained in:
parent
3d1f23e03b
commit
98feeb9968
28 changed files with 120 additions and 83 deletions
|
|
@ -37,6 +37,7 @@ import mage.abilities.effects.common.search.SearchLibraryRevealPutInHandEffect;
|
|||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.mageobject.NamePredicate;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
/**
|
||||
|
|
@ -48,7 +49,7 @@ public class SquadronHawk extends CardImpl<SquadronHawk> {
|
|||
private static final FilterCard filter = new FilterCard("cards named Squadron Hawk");
|
||||
|
||||
static {
|
||||
filter.getName().add("Squadron Hawk");
|
||||
filter.add(new NamePredicate("Squadron Hawk"));
|
||||
}
|
||||
|
||||
public SquadronHawk(UUID ownerId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue