refactored all usages of CardTypePredicate to match the new implementation

This commit is contained in:
Evan Kranzler 2020-01-06 13:18:17 -05:00
parent f685ee3d69
commit 688be783aa
1069 changed files with 1619 additions and 2732 deletions

View file

@ -5,7 +5,6 @@ import mage.abilities.dynamicvalue.common.StaticValue;
import mage.constants.CardType;
import mage.constants.Zone;
import mage.filter.common.FilterPermanentOrPlayer;
import mage.filter.predicate.mageobject.CardTypePredicate;
/**
* @author BetaSteward_at_googlemail.com
@ -16,7 +15,7 @@ public class TargetCreatureOrPlayerAmount extends TargetPermanentOrPlayerAmount
= new FilterPermanentOrPlayer("creatures and/or players");
static {
defaultFilter.getPermanentFilter().add(new CardTypePredicate(CardType.CREATURE));
defaultFilter.getPermanentFilter().add(CardType.CREATURE.getPredicate());
}
public TargetCreatureOrPlayerAmount(int amount) {