forked from External/mage
[filters] Replaced CardType conditions with Predicate
This commit is contained in:
parent
0d2053c634
commit
ecf765ecf5
385 changed files with 1278 additions and 1249 deletions
|
|
@ -34,6 +34,7 @@ import mage.Constants.Rarity;
|
|||
import mage.abilities.effects.common.DestroyAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -44,7 +45,7 @@ public class BackToNature extends CardImpl<BackToNature> {
|
|||
private static final FilterPermanent filter = new FilterPermanent("enchantments");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.ENCHANTMENT);
|
||||
filter.add(new CardTypePredicate(CardType.ENCHANTMENT));
|
||||
}
|
||||
|
||||
public BackToNature(UUID ownerId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue