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
|
|
@ -30,7 +30,7 @@ package mage.target.common;
|
|||
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Zone;
|
||||
import mage.filter.Filter.ComparisonScope;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||
import mage.target.TargetCard;
|
||||
|
||||
|
|
@ -43,8 +43,7 @@ public class TargetBasicLandCard extends TargetCard<TargetBasicLandCard> {
|
|||
public TargetBasicLandCard(Zone zone) {
|
||||
super(zone);
|
||||
filter.add(new SupertypePredicate("Basic"));
|
||||
filter.getCardType().add(CardType.LAND);
|
||||
filter.setScopeCardType(ComparisonScope.Any);
|
||||
filter.add(new CardTypePredicate(CardType.LAND));
|
||||
}
|
||||
|
||||
public TargetBasicLandCard(final TargetBasicLandCard target) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue