mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
refactored SupertypePredicate to be part of SuperType
This commit is contained in:
parent
d919818daa
commit
ecf26585b5
190 changed files with 341 additions and 529 deletions
|
@ -15,7 +15,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetOpponentsCreaturePermanent;
|
import mage.target.common.TargetOpponentsCreaturePermanent;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -28,7 +27,7 @@ public final class AbominableTreefolk extends CardImpl {
|
||||||
private static final FilterPermanent filter = new FilterControlledPermanent("snow permanents you control");
|
private static final FilterPermanent filter = new FilterControlledPermanent("snow permanents you control");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
|
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.filter.FilterCard;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.AnotherPredicate;
|
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -38,7 +37,7 @@ public final class AcclaimedContender extends CardImpl {
|
||||||
SubType.AURA.getPredicate(),
|
SubType.AURA.getPredicate(),
|
||||||
SubType.EQUIPMENT.getPredicate(),
|
SubType.EQUIPMENT.getPredicate(),
|
||||||
Predicates.and(
|
Predicates.and(
|
||||||
new SupertypePredicate(SuperType.LEGENDARY),
|
SuperType.LEGENDARY.getPredicate(),
|
||||||
CardType.ARTIFACT.getPredicate()
|
CardType.ARTIFACT.getPredicate()
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.ColorPredicate;
|
import mage.filter.predicate.mageobject.ColorPredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -26,7 +25,7 @@ public final class AdventurersGuildhouse extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new ColorPredicate(ObjectColor.GREEN));
|
filter.add(new ColorPredicate(ObjectColor.GREEN));
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdventurersGuildhouse(UUID ownerId, CardSetInfo setInfo) {
|
public AdventurersGuildhouse(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
@ -51,7 +50,7 @@ class AlpineMoonEffect extends ContinuousEffectImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new ControllerPredicate(TargetController.OPPONENT));
|
filter.add(new ControllerPredicate(TargetController.OPPONENT));
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public AlpineMoonEffect() {
|
public AlpineMoonEffect() {
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.ControllerIdPredicate;
|
import mage.filter.predicate.permanent.ControllerIdPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.target.TargetPlayer;
|
import mage.target.TargetPlayer;
|
||||||
|
@ -63,7 +62,7 @@ class AnathemancerCount implements DynamicValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
FilterLandPermanent filter = new FilterLandPermanent();
|
FilterLandPermanent filter = new FilterLandPermanent();
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
filter.add(new ControllerIdPredicate(sourceAbility.getFirstTarget()));
|
filter.add(new ControllerIdPredicate(sourceAbility.getFirstTarget()));
|
||||||
|
|
||||||
return game.getBattlefield().count(filter, sourceAbility.getSourceId(), sourceAbility.getControllerId(), game);
|
return game.getBattlefield().count(filter, sourceAbility.getSourceId(), sourceAbility.getControllerId(), game);
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.PowerPredicate;
|
import mage.filter.predicate.mageobject.PowerPredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -60,7 +59,7 @@ enum ArcticFoxesCondition implements Condition {
|
||||||
private static final FilterPermanent filter = new FilterLandPermanent();
|
private static final FilterPermanent filter = new FilterLandPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -25,7 +24,7 @@ public final class ArenaOfTheAncients extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent legendaryFilter = new FilterCreaturePermanent("legendary creatures");
|
private static final FilterCreaturePermanent legendaryFilter = new FilterCreaturePermanent("legendary creatures");
|
||||||
static {
|
static {
|
||||||
legendaryFilter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
legendaryFilter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArenaOfTheAncients(UUID ownerId, CardSetInfo setInfo) {
|
public ArenaOfTheAncients(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +26,7 @@ public final class ArvadTheCursed extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creatures");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creatures");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArvadTheCursed(UUID ownerId, CardSetInfo setInfo) {
|
public ArvadTheCursed(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -9,7 +9,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
import mage.target.targetadjustment.TargetAdjuster;
|
import mage.target.targetadjustment.TargetAdjuster;
|
||||||
|
@ -44,7 +43,7 @@ enum AvalancheAdjuster implements TargetAdjuster {
|
||||||
private static final FilterPermanent filter = new FilterLandPermanent("snow lands");
|
private static final FilterPermanent filter = new FilterLandPermanent("snow lands");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -10,7 +10,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -20,7 +19,7 @@ public final class AyumiTheLastVisitor extends CardImpl {
|
||||||
|
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("Legendary land");
|
private static final FilterLandPermanent filter = new FilterLandPermanent("Legendary land");
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public AyumiTheLastVisitor(UUID ownerId, CardSetInfo setInfo) {
|
public AyumiTheLastVisitor(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -10,7 +10,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.permanent.token.custom.CreatureToken;
|
import mage.game.permanent.token.custom.CreatureToken;
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
|
@ -25,7 +24,7 @@ public final class BalduvianConjurer extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("snow land");
|
private static final FilterLandPermanent filter = new FilterLandPermanent("snow land");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public BalduvianConjurer(UUID ownerId, CardSetInfo setInfo) {
|
public BalduvianConjurer(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.permanent.token.TokenImpl;
|
import mage.game.permanent.token.TokenImpl;
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
|
@ -26,7 +25,7 @@ public final class BalduvianFrostwaker extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("snow land");
|
private static final FilterLandPermanent filter = new FilterLandPermanent("snow land");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public BalduvianFrostwaker(UUID ownerId, CardSetInfo setInfo) {
|
public BalduvianFrostwaker(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +25,7 @@ public final class BantPanorama extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(CardType.LAND.getPredicate());
|
filter.add(CardType.LAND.getPredicate());
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
filter.add(Predicates.or(
|
filter.add(Predicates.or(
|
||||||
SubType.FOREST.getPredicate(),
|
SubType.FOREST.getPredicate(),
|
||||||
SubType.PLAINS.getPredicate(),
|
SubType.PLAINS.getPredicate(),
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -26,7 +25,7 @@ public final class BenalishHonorGuard extends CardImpl {
|
||||||
|
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledCreaturePermanent("legendary creature you control");
|
private static final FilterControlledPermanent filter = new FilterControlledCreaturePermanent("legendary creature you control");
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public BenalishHonorGuard(UUID ownerId, CardSetInfo setInfo) {
|
public BenalishHonorGuard(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -32,7 +31,7 @@ public final class BlackbladeReforged extends CardImpl {
|
||||||
= new FilterControlledCreaturePermanent("legendary creature");
|
= new FilterControlledCreaturePermanent("legendary creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlackbladeReforged(UUID ownerId, CardSetInfo setInfo) {
|
public BlackbladeReforged(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +24,7 @@ public final class BlindWithAnger extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
|
filter.add(Predicates.not(SuperType.LEGENDARY.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlindWithAnger(UUID ownerId, CardSetInfo setInfo) {
|
public BlindWithAnger(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -20,7 +20,6 @@ import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledLandPermanent;
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ public final class Blizzard extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter2 = new FilterCreaturePermanent("creatures with flying");
|
private static final FilterCreaturePermanent filter2 = new FilterCreaturePermanent("creatures with flying");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
filter2.add(new AbilityPredicate(FlyingAbility.class));
|
filter2.add(new AbilityPredicate(FlyingAbility.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.AnotherPredicate;
|
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
@ -37,7 +36,7 @@ public final class BlizzardStrix extends CardImpl {
|
||||||
static {
|
static {
|
||||||
filter.add(AnotherPredicate.instance);
|
filter.add(AnotherPredicate.instance);
|
||||||
filter2.add(AnotherPredicate.instance);
|
filter2.add(AnotherPredicate.instance);
|
||||||
filter2.add(new SupertypePredicate(SuperType.SNOW));
|
filter2.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter2);
|
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter2);
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
|
||||||
|
@ -46,7 +45,7 @@ class BloodMoonEffect extends ContinuousEffectImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
BloodMoonEffect() {
|
BloodMoonEffect() {
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +27,7 @@ public final class BountyAgent extends CardImpl {
|
||||||
private static final FilterPermanent filter = new FilterPermanent("legendary permanent that's an artifact, creature, or enchantment");
|
private static final FilterPermanent filter = new FilterPermanent("legendary permanent that's an artifact, creature, or enchantment");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
filter.add(Predicates.or(
|
filter.add(Predicates.or(
|
||||||
CardType.ARTIFACT.getPredicate(),
|
CardType.ARTIFACT.getPredicate(),
|
||||||
CardType.CREATURE.getPredicate(),
|
CardType.CREATURE.getPredicate(),
|
||||||
|
|
|
@ -11,7 +11,6 @@ import mage.constants.SetTargetPointer;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -22,7 +21,7 @@ public final class BurningEarth extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("a player taps a nonbasic land");
|
private static final FilterLandPermanent filter = new FilterLandPermanent("a player taps a nonbasic land");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public BurningEarth(UUID ownerId, CardSetInfo setInfo) {
|
public BurningEarth(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterControlledLandPermanent;
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author JRHerlehy
|
* @author JRHerlehy
|
||||||
|
@ -27,7 +26,7 @@ public final class CabalStronghold extends CardImpl {
|
||||||
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("basic Swamp you control");
|
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("basic Swamp you control");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
filter.add(SubType.SWAMP.getPredicate());
|
filter.add(SubType.SWAMP.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.ComparisonType;
|
import mage.constants.ComparisonType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author fireshoes
|
* @author fireshoes
|
||||||
|
@ -27,7 +26,7 @@ public final class CanopyVista extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public CanopyVista(UUID ownerId, CardSetInfo setInfo) {
|
public CanopyVista(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +24,7 @@ public final class CaptainSisay extends CardImpl {
|
||||||
private static final FilterCard filter = new FilterCard("legendary card");
|
private static final FilterCard filter = new FilterCard("legendary card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public CaptainSisay(UUID ownerId, CardSetInfo setInfo) {
|
public CaptainSisay(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -7,7 +7,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -16,7 +15,7 @@ public final class CastDown extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
|
filter.add(Predicates.not(SuperType.LEGENDARY.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public CastDown(UUID ownerId, CardSetInfo cardSetInfo){
|
public CastDown(UUID ownerId, CardSetInfo cardSetInfo){
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.ColorPredicate;
|
import mage.filter.predicate.mageobject.ColorPredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -26,7 +25,7 @@ public final class CathedralOfSerra extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new ColorPredicate(ObjectColor.WHITE));
|
filter.add(new ColorPredicate(ObjectColor.WHITE));
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public CathedralOfSerra(UUID ownerId, CardSetInfo setInfo) {
|
public CathedralOfSerra(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -9,7 +9,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +20,7 @@ public final class ChillToTheBone extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonsnow creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonsnow creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.SNOW)));
|
filter.add(Predicates.not(SuperType.SNOW.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChillToTheBone(UUID ownerId, CardSetInfo setInfo) {
|
public ChillToTheBone(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.ComparisonType;
|
import mage.constants.ComparisonType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -28,7 +27,7 @@ public final class CinderGlade extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public CinderGlade(UUID ownerId, CardSetInfo setInfo) {
|
public CinderGlade(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -9,7 +9,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +24,7 @@ public final class CircuitousRoute extends CardImpl {
|
||||||
filter.add(Predicates.or(
|
filter.add(Predicates.or(
|
||||||
Predicates.and(
|
Predicates.and(
|
||||||
CardType.LAND.getPredicate(),
|
CardType.LAND.getPredicate(),
|
||||||
new SupertypePredicate(SuperType.BASIC)
|
SuperType.BASIC.getPredicate()
|
||||||
), SubType.GATE.getPredicate()
|
), SubType.GATE.getPredicate()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
|
||||||
|
@ -47,7 +46,7 @@ class ColdSnapDamageTargetEffect extends OneShotEffect{
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("snow lands");
|
private static final FilterLandPermanent filter = new FilterLandPermanent("snow lands");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public ColdSnapDamageTargetEffect()
|
public ColdSnapDamageTargetEffect()
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -28,7 +27,7 @@ public final class ConiferWurm extends CardImpl {
|
||||||
= new FilterControlledPermanent("the number of snow permanents you control");
|
= new FilterControlledPermanent("the number of snow permanents you control");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
|
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
|
||||||
|
|
|
@ -12,7 +12,6 @@ import mage.constants.Outcome;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.target.Target;
|
import mage.target.Target;
|
||||||
|
@ -28,7 +27,7 @@ public final class Cytoshape extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
|
filter.add(Predicates.not(SuperType.LEGENDARY.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Cytoshape(UUID ownerId, CardSetInfo setInfo) {
|
public Cytoshape(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -11,7 +11,6 @@ import mage.constants.Duration;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -22,7 +21,7 @@ public final class DayOfDestiny extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Legendary creatures");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Legendary creatures");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public DayOfDestiny(UUID ownerId, CardSetInfo setInfo) {
|
public DayOfDestiny(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -12,7 +12,6 @@ import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -25,8 +24,8 @@ public final class DeadOfWinter extends CardImpl {
|
||||||
private static final FilterPermanent filter2 = new FilterControlledPermanent();
|
private static final FilterPermanent filter2 = new FilterControlledPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.SNOW)));
|
filter.add(Predicates.not(SuperType.SNOW.getPredicate()));
|
||||||
filter2.add(new SupertypePredicate(SuperType.SNOW));
|
filter2.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter2, -1);
|
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter2, -1);
|
||||||
|
|
|
@ -22,7 +22,6 @@ import mage.constants.Zone;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.game.events.GameEvent.EventType;
|
import mage.game.events.GameEvent.EventType;
|
||||||
|
@ -102,7 +101,7 @@ class NonBasicLandsInOpponentsGraveyards implements DynamicValue {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(CardType.LAND.getPredicate());
|
filter.add(CardType.LAND.getPredicate());
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.constants.Duration;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -26,7 +25,7 @@ public final class DiamondFaerie extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Snow creatures");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Snow creatures");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public DiamondFaerie(UUID ownerId, CardSetInfo setInfo) {
|
public DiamondFaerie(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.permanent.token.TrooperToken2;
|
import mage.game.permanent.token.TrooperToken2;
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
|
@ -27,7 +26,7 @@ public final class DirectorKrennic extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filterLand.add(CardType.LAND.getPredicate());
|
filterLand.add(CardType.LAND.getPredicate());
|
||||||
filterLand.add(new SupertypePredicate(SuperType.BASIC));
|
filterLand.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public DirectorKrennic(UUID ownerId, CardSetInfo setInfo) {
|
public DirectorKrennic(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -11,7 +11,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +26,7 @@ public final class DistrictGuide extends CardImpl {
|
||||||
filter.add(Predicates.or(
|
filter.add(Predicates.or(
|
||||||
Predicates.and(
|
Predicates.and(
|
||||||
CardType.LAND.getPredicate(),
|
CardType.LAND.getPredicate(),
|
||||||
new SupertypePredicate(SuperType.BASIC)
|
SuperType.BASIC.getPredicate()
|
||||||
), SubType.GATE.getPredicate()
|
), SubType.GATE.getPredicate()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +26,7 @@ public final class DjinnOfInfiniteDeceits extends CardImpl {
|
||||||
private static final String rule = "Exchange control of two target nonlegendary creatures";
|
private static final String rule = "Exchange control of two target nonlegendary creatures";
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("nonlegendary creature");
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
|
filter.add(Predicates.not(SuperType.LEGENDARY.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public DjinnOfInfiniteDeceits(UUID ownerId, CardSetInfo setInfo) {
|
public DjinnOfInfiniteDeceits(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.TargetController;
|
import mage.constants.TargetController;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +27,7 @@ public final class DriftOfTheDead extends CardImpl {
|
||||||
private static final FilterPermanent filter = new FilterPermanent("snow lands you control");
|
private static final FilterPermanent filter = new FilterPermanent("snow lands you control");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
filter.add(CardType.LAND.getPredicate());
|
filter.add(CardType.LAND.getPredicate());
|
||||||
filter.add(new ControllerPredicate(TargetController.YOU));
|
filter.add(new ControllerPredicate(TargetController.YOU));
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicate;
|
import mage.filter.predicate.Predicate;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -63,7 +62,7 @@ public final class DroidFactory extends CardImpl {
|
||||||
subtypePredicates.add(SubType.PLAINS.getPredicate());
|
subtypePredicates.add(SubType.PLAINS.getPredicate());
|
||||||
subtypePredicates.add(SubType.ISLAND.getPredicate());
|
subtypePredicates.add(SubType.ISLAND.getPredicate());
|
||||||
filter.add(Predicates.or(subtypePredicates));
|
filter.add(Predicates.or(subtypePredicates));
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||||
addEffect(new SearchLibraryPutInPlayEffect(target, true, true, Outcome.PutLandInPlay));
|
addEffect(new SearchLibraryPutInPlayEffect(target, true, true, Outcome.PutLandInPlay));
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
@ -44,7 +43,7 @@ class UntapAllLandsTargetEffect extends OneShotEffect {
|
||||||
|
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public UntapAllLandsTargetEffect() {
|
public UntapAllLandsTargetEffect() {
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.TappedPredicate;
|
import mage.filter.predicate.permanent.TappedPredicate;
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
import mage.target.common.TargetControlledCreaturePermanent;
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
|
@ -30,7 +29,7 @@ public final class Earthcraft extends CardImpl {
|
||||||
static {
|
static {
|
||||||
filterCreature.add(Predicates.not(TappedPredicate.instance));
|
filterCreature.add(Predicates.not(TappedPredicate.instance));
|
||||||
filterLand.add(CardType.LAND.getPredicate());
|
filterLand.add(CardType.LAND.getPredicate());
|
||||||
filterLand.add(new SupertypePredicate(SuperType.BASIC));
|
filterLand.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Earthcraft(UUID ownerId, CardSetInfo setInfo) {
|
public Earthcraft(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +23,7 @@ public final class EiganjoCastle extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public EiganjoCastle(UUID ownerId, CardSetInfo setInfo) {
|
public EiganjoCastle(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -10,7 +10,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -23,7 +22,7 @@ public final class EmpressGalina extends CardImpl {
|
||||||
private static final FilterPermanent filter = new FilterPermanent("legendary permanent");
|
private static final FilterPermanent filter = new FilterPermanent("legendary permanent");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public EmpressGalina(UUID ownerId, CardSetInfo setInfo) {
|
public EmpressGalina(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -9,7 +9,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetOpponent;
|
import mage.target.common.TargetOpponent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +20,7 @@ public final class Encroach extends CardImpl {
|
||||||
private static final FilterCard filter = new FilterCard("a nonbasic land card");
|
private static final FilterCard filter = new FilterCard("a nonbasic land card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
filter.add(CardType.LAND.getPredicate());
|
filter.add(CardType.LAND.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +26,7 @@ public final class EsperPanorama extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(CardType.LAND.getPredicate());
|
filter.add(CardType.LAND.getPredicate());
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
filter.add(Predicates.or(
|
filter.add(Predicates.or(
|
||||||
SubType.PLAINS.getPredicate(),
|
SubType.PLAINS.getPredicate(),
|
||||||
SubType.ISLAND.getPredicate(),
|
SubType.ISLAND.getPredicate(),
|
||||||
|
|
|
@ -21,7 +21,6 @@ import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterPermanentCard;
|
import mage.filter.common.FilterPermanentCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.other.ExpansionSetPredicate;
|
import mage.filter.predicate.other.ExpansionSetPredicate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +33,7 @@ public final class EverythingamajigB extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.and(
|
filter.add(Predicates.and(
|
||||||
Predicates.not(new SupertypePredicate(SuperType.BASIC)), // all Un-set basic lands are black bordered cards, and thus illegal choices
|
Predicates.not(SuperType.BASIC.getPredicate()), // all Un-set basic lands are black bordered cards, and thus illegal choices
|
||||||
Predicates.not(new NamePredicate("Steamflogger Boss")), // printed in Unstable with a black border
|
Predicates.not(new NamePredicate("Steamflogger Boss")), // printed in Unstable with a black border
|
||||||
Predicates.or(new ExpansionSetPredicate("UGL"), new ExpansionSetPredicate("UNH"), new ExpansionSetPredicate("UST"))
|
Predicates.or(new ExpansionSetPredicate("UGL"), new ExpansionSetPredicate("UNH"), new ExpansionSetPredicate("UST"))
|
||||||
));
|
));
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterControlledLandPermanent;
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
@ -31,7 +30,7 @@ public final class Excavator extends CardImpl {
|
||||||
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("basic land");
|
private static final FilterControlledLandPermanent filter = new FilterControlledLandPermanent("basic land");
|
||||||
static
|
static
|
||||||
{
|
{
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Excavator(UUID ownerId, CardSetInfo setInfo) {
|
public Excavator(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -18,7 +18,6 @@ import mage.constants.Zone;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.common.TargetCardInGraveyard;
|
import mage.target.common.TargetCardInGraveyard;
|
||||||
|
@ -34,7 +33,7 @@ public final class Extirpate extends CardImpl {
|
||||||
private static final FilterCard filter = new FilterCard("card in a graveyard other than a basic land card");
|
private static final FilterCard filter = new FilterCard("card in a graveyard other than a basic land card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(Predicates.and(CardType.LAND.getPredicate(), new SupertypePredicate(SuperType.BASIC))));
|
filter.add(Predicates.not(Predicates.and(CardType.LAND.getPredicate(), SuperType.BASIC.getPredicate())));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Extirpate(UUID ownerId, CardSetInfo setInfo) {
|
public Extirpate(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.game.events.GameEvent.EventType;
|
import mage.game.events.GameEvent.EventType;
|
||||||
|
@ -58,7 +57,7 @@ class EyeOfSingularityETBEffect extends OneShotEffect {
|
||||||
private static final FilterPermanent filter = new FilterPermanent();
|
private static final FilterPermanent filter = new FilterPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
EyeOfSingularityETBEffect() {
|
EyeOfSingularityETBEffect() {
|
||||||
|
@ -146,7 +145,7 @@ class EyeOfSingularityTriggeredEffect extends OneShotEffect {
|
||||||
private static final FilterPermanent filter = new FilterPermanent();
|
private static final FilterPermanent filter = new FilterPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
EyeOfSingularityTriggeredEffect() {
|
EyeOfSingularityTriggeredEffect() {
|
||||||
|
|
|
@ -21,7 +21,6 @@ import mage.constants.Zone;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
@ -38,7 +37,7 @@ public final class FieldOfRuin extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new ControllerPredicate(TargetController.OPPONENT));
|
filter.add(new ControllerPredicate(TargetController.OPPONENT));
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public FieldOfRuin(UUID ownerId, CardSetInfo setInfo) {
|
public FieldOfRuin(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterControlledLandPermanent;
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +27,7 @@ public final class FieldmistBorderpost extends CardImpl {
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent("a basic land");
|
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent("a basic land");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FieldmistBorderpost (UUID ownerId, CardSetInfo setInfo) {
|
public FieldmistBorderpost (UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterControlledLandPermanent;
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +27,7 @@ public final class FirewildBorderpost extends CardImpl {
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent("a basic land");
|
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent("a basic land");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FirewildBorderpost (UUID ownerId, CardSetInfo setInfo) {
|
public FirewildBorderpost (UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -12,7 +12,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +24,7 @@ public final class FlowerFlourish extends SplitCard {
|
||||||
= new FilterCard("basic Forest or Plains card");
|
= new FilterCard("basic Forest or Plains card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
filter.add(Predicates.or(
|
filter.add(Predicates.or(
|
||||||
SubType.FOREST.getPredicate(),
|
SubType.FOREST.getPredicate(),
|
||||||
SubType.PLAINS.getPredicate()
|
SubType.PLAINS.getPredicate()
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.TargetController;
|
import mage.constants.TargetController;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -25,7 +24,7 @@ public final class FreyalisesRadiance extends CardImpl {
|
||||||
private static final FilterPermanent filter = new FilterPermanent("snow permanents");
|
private static final FilterPermanent filter = new FilterPermanent("snow permanents");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public FreyalisesRadiance(UUID ownerId, CardSetInfo setInfo) {
|
public FreyalisesRadiance(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -12,7 +12,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -25,7 +24,7 @@ public final class GaeasTouch extends CardImpl {
|
||||||
|
|
||||||
// You may put a basic Forest card from your hand onto the battlefield. Activate this ability only any time you could cast a sorcery and only once each turn.
|
// You may put a basic Forest card from your hand onto the battlefield. Activate this ability only any time you could cast a sorcery and only once each turn.
|
||||||
FilterCard filter = new FilterCard("basic Forest card");
|
FilterCard filter = new FilterCard("basic Forest card");
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
filter.add(SubType.FOREST.getPredicate());
|
filter.add(SubType.FOREST.getPredicate());
|
||||||
LimitedTimesPerTurnActivatedAbility ability = new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD,
|
LimitedTimesPerTurnActivatedAbility ability = new LimitedTimesPerTurnActivatedAbility(Zone.BATTLEFIELD,
|
||||||
new PutCardFromHandOntoBattlefieldEffect(filter), new GenericManaCost(0), 1);
|
new PutCardFromHandOntoBattlefieldEffect(filter), new GenericManaCost(0), 1);
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -29,7 +28,7 @@ public final class GangrenousZombies extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
filter.add(SubType.SWAMP.getPredicate());
|
filter.add(SubType.SWAMP.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.*;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.AnotherPredicate;
|
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
@ -65,7 +64,7 @@ class GargantuanGorillaSacrificeEffect extends OneShotEffect {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(SubType.FOREST.getPredicate());
|
filter.add(SubType.FOREST.getPredicate());
|
||||||
filterSnow.add(new SupertypePredicate(SuperType.SNOW));
|
filterSnow.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public GargantuanGorillaSacrificeEffect() {
|
public GargantuanGorillaSacrificeEffect() {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.constants.SuperType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
|
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -30,7 +29,7 @@ public final class GatecreeperVine extends CardImpl {
|
||||||
Predicates.or(
|
Predicates.or(
|
||||||
Predicates.and(
|
Predicates.and(
|
||||||
CardType.LAND.getPredicate(),
|
CardType.LAND.getPredicate(),
|
||||||
new SupertypePredicate(SuperType.BASIC)),
|
SuperType.BASIC.getPredicate()),
|
||||||
SubType.GATE.getPredicate()));
|
SubType.GATE.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.constants.*;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.game.events.GameEvent.EventType;
|
import mage.game.events.GameEvent.EventType;
|
||||||
|
@ -35,7 +34,7 @@ public final class GauntletOfPower extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("a basic land");
|
private static final FilterLandPermanent filter = new FilterLandPermanent("a basic land");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public GauntletOfPower(UUID ownerId, CardSetInfo setInfo) {
|
public GauntletOfPower(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -11,7 +11,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterControlledLandPermanent;
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +23,7 @@ public final class GlacialCrevasses extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(SubType.MOUNTAIN.getPredicate());
|
filter.add(SubType.MOUNTAIN.getPredicate());
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public GlacialCrevasses(UUID ownerId, CardSetInfo setInfo) {
|
public GlacialCrevasses(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -12,7 +12,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.common.FilterPermanentCard;
|
import mage.filter.common.FilterPermanentCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
|
@ -46,7 +45,7 @@ class GlacialRevelationEffect extends OneShotEffect {
|
||||||
private static final FilterCard filter = new FilterPermanentCard("snow permanent cards");
|
private static final FilterCard filter = new FilterPermanentCard("snow permanent cards");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
GlacialRevelationEffect() {
|
GlacialRevelationEffect() {
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.common.FilterCreatureCard;
|
import mage.filter.common.FilterCreatureCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
@ -33,7 +32,7 @@ public final class GoryosVengeance extends CardImpl {
|
||||||
private static final FilterCard filter = new FilterCreatureCard("legendary creature card");
|
private static final FilterCard filter = new FilterCreatureCard("legendary creature card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public GoryosVengeance(UUID ownerId, CardSetInfo setInfo) {
|
public GoryosVengeance(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +26,7 @@ public final class GrixisPanorama extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(CardType.LAND.getPredicate());
|
filter.add(CardType.LAND.getPredicate());
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
filter.add(Predicates.or(
|
filter.add(Predicates.or(
|
||||||
SubType.ISLAND.getPredicate(),
|
SubType.ISLAND.getPredicate(),
|
||||||
SubType.SWAMP.getPredicate(),
|
SubType.SWAMP.getPredicate(),
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledLandPermanent;
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +25,7 @@ public final class HallowedGround extends CardImpl {
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent("nonsnow land you control");
|
private static final FilterControlledPermanent filter = new FilterControlledLandPermanent("nonsnow land you control");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.SNOW)));
|
filter.add(Predicates.not(SuperType.SNOW.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public HallowedGround(UUID ownerId, CardSetInfo setInfo) {
|
public HallowedGround(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.constants.ComparisonType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,7 +28,7 @@ public final class HeidarRimewindMaster extends CardImpl {
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("you control four or more snow permanents");
|
private static final FilterControlledPermanent filter = new FilterControlledPermanent("you control four or more snow permanents");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public HeidarRimewindMaster(UUID ownerId, CardSetInfo setInfo) {
|
public HeidarRimewindMaster(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.constants.*;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.common.FilterCreatureCard;
|
import mage.filter.common.FilterCreatureCard;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
|
@ -31,7 +30,7 @@ public final class HeroesPodium extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Each legendary creature you control");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Each legendary creature you control");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public HeroesPodium(UUID ownerId, CardSetInfo setInfo) {
|
public HeroesPodium(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
@ -65,7 +64,7 @@ class HeroesPodiumLegendaryCount implements DynamicValue {
|
||||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("other legendary creature you control");
|
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("other legendary creature you control");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -98,7 +97,7 @@ class HeroesPodiumEffect extends OneShotEffect {
|
||||||
private static final FilterCreatureCard filter = new FilterCreatureCard("a legendary creature card");
|
private static final FilterCreatureCard filter = new FilterCreatureCard("a legendary creature card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public HeroesPodiumEffect() {
|
public HeroesPodiumEffect() {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +24,7 @@ public final class HerosBlade extends CardImpl {
|
||||||
private static final FilterPermanent filter = new FilterCreaturePermanent("a legendary creature");
|
private static final FilterPermanent filter = new FilterCreaturePermanent("a legendary creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
filter.add(new ControllerPredicate(TargetController.YOU));
|
filter.add(new ControllerPredicate(TargetController.YOU));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,7 +19,7 @@ public final class HerosDemise extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public HerosDemise(UUID ownerId, CardSetInfo setInfo) {
|
public HerosDemise(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.TappedPredicate;
|
import mage.filter.predicate.permanent.TappedPredicate;
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
|
@ -28,7 +27,7 @@ public final class HonorWornShaku extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(TappedPredicate.instance));
|
filter.add(Predicates.not(TappedPredicate.instance));
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public HonorWornShaku(UUID ownerId, CardSetInfo setInfo) {
|
public HonorWornShaku(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.AnotherPredicate;
|
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -29,7 +28,7 @@ public final class IceFangCoatl extends CardImpl {
|
||||||
private static final FilterPermanent filter = new FilterControlledPermanent();
|
private static final FilterPermanent filter = new FilterControlledPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
filter.add(AnotherPredicate.instance);
|
filter.add(AnotherPredicate.instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.AnotherPredicate;
|
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||||
import mage.target.TargetPlayer;
|
import mage.target.TargetPlayer;
|
||||||
|
|
||||||
|
@ -26,7 +25,7 @@ public final class IcebergCancrix extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(AnotherPredicate.instance);
|
filter.add(AnotherPredicate.instance);
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public IcebergCancrix(UUID ownerId, CardSetInfo setInfo) {
|
public IcebergCancrix(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -11,7 +11,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -22,7 +21,7 @@ public final class Imperiosaur extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Imperiosaur(UUID ownerId, CardSetInfo setInfo) {
|
public Imperiosaur(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -9,7 +9,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandCard;
|
import mage.filter.common.FilterLandCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +20,7 @@ public final class IntoTheNorth extends CardImpl {
|
||||||
private static final FilterLandCard filter = new FilterLandCard("snow land card");
|
private static final FilterLandCard filter = new FilterLandCard("snow land card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public IntoTheNorth(UUID ownerId, CardSetInfo setInfo) {
|
public IntoTheNorth(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.constants.Outcome;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.Target;
|
import mage.target.Target;
|
||||||
|
@ -56,7 +55,7 @@ class IwamoriOfTheOpenFistEffect extends OneShotEffect {
|
||||||
private static final FilterCard filter = new FilterCard("legendary creature card");
|
private static final FilterCard filter = new FilterCard("legendary creature card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
filter.add(CardType.CREATURE.getPredicate());
|
filter.add(CardType.CREATURE.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ import mage.constants.Zone;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.filter.common.FilterCreatureCard;
|
import mage.filter.common.FilterCreatureCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetControlledCreaturePermanent;
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,7 +29,7 @@ public final class JaliraMasterPolymorphist extends CardImpl {
|
||||||
private static final FilterCreatureCard filterCard = new FilterCreatureCard("nonlegendary creature card");
|
private static final FilterCreatureCard filterCard = new FilterCreatureCard("nonlegendary creature card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filterCard.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
|
filterCard.add(Predicates.not(SuperType.LEGENDARY.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public JaliraMasterPolymorphist(UUID ownerId, CardSetInfo setInfo) {
|
public JaliraMasterPolymorphist(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicate;
|
import mage.filter.predicate.Predicate;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -63,7 +62,7 @@ public final class JediEnclave extends CardImpl {
|
||||||
subtypePredicates.add(SubType.PLAINS.getPredicate());
|
subtypePredicates.add(SubType.PLAINS.getPredicate());
|
||||||
subtypePredicates.add(SubType.ISLAND.getPredicate());
|
subtypePredicates.add(SubType.ISLAND.getPredicate());
|
||||||
filter.add(Predicates.or(subtypePredicates));
|
filter.add(Predicates.or(subtypePredicates));
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||||
addEffect(new SearchLibraryPutInPlayEffect(target, true, true, Outcome.PutLandInPlay));
|
addEffect(new SearchLibraryPutInPlayEffect(target, true, true, Outcome.PutLandInPlay));
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +27,7 @@ public final class JundPanorama extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(CardType.LAND.getPredicate());
|
filter.add(CardType.LAND.getPredicate());
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
filter.add(Predicates.or(
|
filter.add(Predicates.or(
|
||||||
SubType.SWAMP.getPredicate(),
|
SubType.SWAMP.getPredicate(),
|
||||||
SubType.MOUNTAIN.getPredicate(),
|
SubType.MOUNTAIN.getPredicate(),
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicate;
|
import mage.filter.predicate.Predicate;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -63,7 +62,7 @@ public final class JungleVillage extends CardImpl {
|
||||||
subtypePredicates.add(SubType.MOUNTAIN.getPredicate());
|
subtypePredicates.add(SubType.MOUNTAIN.getPredicate());
|
||||||
subtypePredicates.add(SubType.FAERIE.getPredicate());
|
subtypePredicates.add(SubType.FAERIE.getPredicate());
|
||||||
filter.add(Predicates.or(subtypePredicates));
|
filter.add(Predicates.or(subtypePredicates));
|
||||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
filter.add(SuperType.BASIC.getPredicate());
|
||||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||||
addEffect(new SearchLibraryPutInPlayEffect(target, true, true, Outcome.PutLandInPlay));
|
addEffect(new SearchLibraryPutInPlayEffect(target, true, true, Outcome.PutLandInPlay));
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.filter.FilterCard;
|
||||||
import mage.filter.common.FilterPermanentCard;
|
import mage.filter.common.FilterPermanentCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
|
@ -77,7 +76,7 @@ class KamahlsDruidicVowEffect extends OneShotEffect {
|
||||||
filter.add(
|
filter.add(
|
||||||
Predicates.or(
|
Predicates.or(
|
||||||
CardType.LAND.getPredicate(),
|
CardType.LAND.getPredicate(),
|
||||||
new SupertypePredicate(SuperType.LEGENDARY)
|
SuperType.LEGENDARY.getPredicate()
|
||||||
));
|
));
|
||||||
TargetCard target1 = new TargetCard(0, Integer.MAX_VALUE, Zone.LIBRARY, filter);
|
TargetCard target1 = new TargetCard(0, Integer.MAX_VALUE, Zone.LIBRARY, filter);
|
||||||
target1.setNotTarget(true);
|
target1.setNotTarget(true);
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +23,7 @@ public final class Karakas extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Karakas(UUID ownerId, CardSetInfo setInfo) {
|
public Karakas(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.constants.Duration;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterControlledLandPermanent;
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.filter.predicate.permanent.TappedPredicate;
|
import mage.filter.predicate.permanent.TappedPredicate;
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
|
@ -28,7 +27,7 @@ public final class KarplusanGiant extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(TappedPredicate.instance));
|
filter.add(Predicates.not(TappedPredicate.instance));
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public KarplusanGiant(UUID ownerId, CardSetInfo setInfo) {
|
public KarplusanGiant(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -25,7 +24,7 @@ public final class KashiTribeElite extends CardImpl {
|
||||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("Legendary Snakes");
|
private static final FilterControlledPermanent filter = new FilterControlledPermanent("Legendary Snakes");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
filter.add(SubType.SNAKE.getPredicate());
|
filter.add(SubType.SNAKE.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.common.TargetCardInYourGraveyard;
|
import mage.target.common.TargetCardInYourGraveyard;
|
||||||
|
@ -30,8 +29,8 @@ public final class KethisTheHiddenHand extends CardImpl {
|
||||||
private static final FilterCard filter2 = new FilterCard("legendary cards from your graveyard");
|
private static final FilterCard filter2 = new FilterCard("legendary cards from your graveyard");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
filter2.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter2.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public KethisTheHiddenHand(UUID ownerId, CardSetInfo setInfo) {
|
public KethisTheHiddenHand(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -20,7 +20,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.target.common.TargetControlledCreaturePermanent;
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
|
@ -35,7 +34,7 @@ public final class KikiJikiMirrorBreaker extends CardImpl {
|
||||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("nonlegendary creature you control");
|
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("nonlegendary creature you control");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
|
filter.add(Predicates.not(SuperType.LEGENDARY.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public KikiJikiMirrorBreaker(UUID ownerId, CardSetInfo setInfo) {
|
public KikiJikiMirrorBreaker(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.Duration;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetAnyTarget;
|
import mage.target.common.TargetAnyTarget;
|
||||||
import mage.target.common.TargetCreaturePermanent;
|
import mage.target.common.TargetCreaturePermanent;
|
||||||
|
|
||||||
|
@ -28,7 +27,7 @@ public final class KitsuneHealer extends CardImpl {
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creature");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public KitsuneHealer(UUID ownerId, CardSetInfo setInfo) {
|
public KitsuneHealer(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -41,7 +41,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.StaticFilters;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.target.Target;
|
import mage.target.Target;
|
||||||
|
@ -56,7 +55,7 @@ public final class KondasBanner extends CardImpl {
|
||||||
private static final FilterControlledCreaturePermanent legendaryFilter = new FilterControlledCreaturePermanent("legendary creatures");
|
private static final FilterControlledCreaturePermanent legendaryFilter = new FilterControlledCreaturePermanent("legendary creatures");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
legendaryFilter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
legendaryFilter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public KondasBanner(UUID ownerId, CardSetInfo setInfo) {
|
public KondasBanner(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -14,7 +14,6 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -27,7 +26,7 @@ public final class KondasHatamoto extends CardImpl {
|
||||||
private static final String rule2 = "As long as you control a legendary Samurai, {this} has vigilance";
|
private static final String rule2 = "As long as you control a legendary Samurai, {this} has vigilance";
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
filter.add(SubType.SAMURAI.getPredicate());
|
filter.add(SubType.SAMURAI.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.TargetController;
|
import mage.constants.TargetController;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.TargetPlayer;
|
import mage.target.TargetPlayer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +22,7 @@ public final class LayBareTheHeart extends CardImpl {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(CardType.LAND.getPredicate()));
|
filter.add(Predicates.not(CardType.LAND.getPredicate()));
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
|
filter.add(Predicates.not(SuperType.LEGENDARY.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public LayBareTheHeart(UUID ownerId, CardSetInfo setInfo) {
|
public LayBareTheHeart(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -10,7 +10,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -21,7 +20,7 @@ public final class LegionsOfLimDul extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("snow swamp");
|
private static final FilterLandPermanent filter = new FilterLandPermanent("snow swamp");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
filter.add(SubType.SWAMP .getPredicate());
|
filter.add(SubType.SWAMP .getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
import mage.filter.common.FilterPermanentCard;
|
import mage.filter.common.FilterPermanentCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInLibrary;
|
import mage.target.common.TargetCardInLibrary;
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
|
@ -28,7 +27,7 @@ public final class Lifespinner extends CardImpl {
|
||||||
private static final FilterPermanentCard filter = new FilterPermanentCard("legendary Spirit permanent card");
|
private static final FilterPermanentCard filter = new FilterPermanentCard("legendary Spirit permanent card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
filter.add(SubType.SPIRIT.getPredicate());
|
filter.add(SubType.SPIRIT.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.filter.FilterCard;
|
||||||
import mage.filter.common.FilterCreatureCard;
|
import mage.filter.common.FilterCreatureCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.command.emblems.LilianaDefiantNecromancerEmblem;
|
import mage.game.command.emblems.LilianaDefiantNecromancerEmblem;
|
||||||
import mage.target.common.TargetCardInYourGraveyard;
|
import mage.target.common.TargetCardInYourGraveyard;
|
||||||
|
@ -31,7 +30,7 @@ public final class LilianaDefiantNecromancer extends CardImpl {
|
||||||
protected static final FilterCreatureCard filter = new FilterCreatureCard("nonlegendary creature with converted mana cost X from your graveyard");
|
protected static final FilterCreatureCard filter = new FilterCreatureCard("nonlegendary creature with converted mana cost X from your graveyard");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.LEGENDARY)));
|
filter.add(Predicates.not(SuperType.LEGENDARY.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public LilianaDefiantNecromancer(UUID ownerId, CardSetInfo setInfo) {
|
public LilianaDefiantNecromancer(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -11,7 +11,6 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -22,7 +21,7 @@ public final class LivonyaSilone extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent("Legendary land");
|
private static final FilterLandPermanent filter = new FilterLandPermanent("Legendary land");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public LivonyaSilone(UUID ownerId, CardSetInfo setInfo) {
|
public LivonyaSilone(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import mage.constants.Zone;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
import mage.filter.predicate.mageobject.NamePredicate;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.TargetCard;
|
import mage.target.TargetCard;
|
||||||
|
@ -49,7 +48,7 @@ class LobotomyEffect extends OneShotEffect {
|
||||||
private static final FilterCard filter = new FilterCard("card other than a basic land card");
|
private static final FilterCard filter = new FilterCard("card other than a basic land card");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(Predicates.and(CardType.LAND.getPredicate(), new SupertypePredicate(SuperType.BASIC))));
|
filter.add(Predicates.not(Predicates.and(CardType.LAND.getPredicate(), SuperType.BASIC.getPredicate())));
|
||||||
}
|
}
|
||||||
|
|
||||||
public LobotomyEffect() {
|
public LobotomyEffect() {
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreatureCard;
|
import mage.filter.common.FilterCreatureCard;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.common.TargetCardInYourGraveyard;
|
import mage.target.common.TargetCardInYourGraveyard;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +26,7 @@ public final class LoyalRetainers extends CardImpl {
|
||||||
private static final FilterCreatureCard filter = new FilterCreatureCard("legendary creature card from your graveyard");
|
private static final FilterCreatureCard filter = new FilterCreatureCard("legendary creature card from your graveyard");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
public LoyalRetainers(UUID ownerId, CardSetInfo setInfo) {
|
public LoyalRetainers(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -10,7 +10,6 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
|
||||||
|
@ -24,7 +23,7 @@ public final class MagusOfTheMoon extends CardImpl {
|
||||||
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
private static final FilterLandPermanent filter = new FilterLandPermanent();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public MagusOfTheMoon(UUID ownerId, CardSetInfo setInfo) {
|
public MagusOfTheMoon(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
|
|
@ -17,7 +17,6 @@ import mage.constants.SuperType;
|
||||||
import mage.constants.TargetController;
|
import mage.constants.TargetController;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterControlledPermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.permanent.token.MaritLageToken;
|
import mage.game.permanent.token.MaritLageToken;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -31,7 +30,7 @@ public final class MaritLagesSlumber extends CardImpl {
|
||||||
= new FilterControlledPermanent("{this} or another snow permanent");
|
= new FilterControlledPermanent("{this} or another snow permanent");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.SNOW));
|
filter.add(SuperType.SNOW.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Condition condition
|
private static final Condition condition
|
||||||
|
|
|
@ -15,7 +15,6 @@ import mage.constants.SuperType;
|
||||||
import mage.filter.common.FilterAttackingCreature;
|
import mage.filter.common.FilterAttackingCreature;
|
||||||
import mage.filter.common.FilterLandPermanent;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.combat.CombatGroup;
|
import mage.game.combat.CombatGroup;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
@ -60,7 +59,7 @@ public final class MercadiasDownfall extends CardImpl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FilterLandPermanent filter = new FilterLandPermanent("nonbasic land");
|
FilterLandPermanent filter = new FilterLandPermanent("nonbasic land");
|
||||||
filter.add(Predicates.not(new SupertypePredicate(SuperType.BASIC)));
|
filter.add(Predicates.not(SuperType.BASIC.getPredicate()));
|
||||||
System.out.println("The number of nonbasic lands is " + game.getBattlefield().countAll(filter, defenderId, game));
|
System.out.println("The number of nonbasic lands is " + game.getBattlefield().countAll(filter, defenderId, game));
|
||||||
return game.getBattlefield().countAll(filter, defenderId, game);
|
return game.getBattlefield().countAll(filter, defenderId, game);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@ import mage.constants.ColoredManaSymbol;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
|
||||||
import mage.target.TargetPermanent;
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +27,7 @@ public final class MinamoSchoolAtWatersEdge extends CardImpl {
|
||||||
private static final FilterPermanent filter = new FilterPermanent("legendary permanent");
|
private static final FilterPermanent filter = new FilterPermanent("legendary permanent");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue