Fixed notCardType in FilterObject. Now Crush, Go for the Troat, Inquisition Of Koziler, Negate, Duress, Spell Pierce works correctly.

This commit is contained in:
magenoxx 2011-05-13 10:00:41 +04:00
parent da316cc345
commit 786b5cd751
8 changed files with 29 additions and 19 deletions

View file

@ -78,10 +78,8 @@ class DuressEffect extends OneShotEffect<DuressEffect> {
private static FilterCard filter = new FilterCard("noncreature, nonland card");
static {
filter.getCardType().add(CardType.CREATURE);
filter.getCardType().add(CardType.LAND);
filter.setScopeCardType(ComparisonScope.Any);
filter.setNotCardType(true);
filter.getNotCardType().add(CardType.CREATURE);
filter.getNotCardType().add(CardType.LAND);
}
public DuressEffect() {

View file

@ -45,8 +45,7 @@ public class Negate extends CardImpl<Negate> {
private static FilterSpell filter = new FilterSpell("noncreature spell");
static {
filter.getCardType().add(CardType.CREATURE);
filter.setNotCardType(true);
filter.getNotCardType().add(CardType.CREATURE);
}
public Negate(UUID ownerId) {

View file

@ -44,8 +44,7 @@ public class Crush extends CardImpl<Crush> {
private static final FilterArtifactPermanent filter = new FilterArtifactPermanent("noncreature artifact");
static {
filter.getCardType().add(CardType.CREATURE);
filter.setNotCardType(true);
filter.getNotCardType().add(CardType.CREATURE);
}
public Crush(UUID ownerId) {

View file

@ -45,8 +45,7 @@ public class GofortheThroat extends CardImpl<GofortheThroat> {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
static {
filter.getCardType().add(CardType.ARTIFACT);
filter.setNotCardType(true);
filter.getNotCardType().add(CardType.ARTIFACT);
}
public GofortheThroat(UUID ownerId) {

View file

@ -79,9 +79,7 @@ class InquisitionOfKozilekEffect extends OneShotEffect<InquisitionOfKozilekEffec
private static FilterCard filter = new FilterCard("nonland card with converted mana cost 3 or less");
static {
filter.getCardType().add(CardType.LAND);
filter.setScopeCardType(ComparisonScope.Any);
filter.setNotCardType(true);
filter.getNotCardType().add(CardType.LAND);
filter.setConvertedManaCost(4);
filter.setConvertedManaCostComparison(ComparisonType.LessThan);

View file

@ -46,8 +46,7 @@ public class SpellPierce extends CardImpl<SpellPierce> {
private static FilterSpell filter = new FilterSpell("noncreature spell");
static {
filter.getCardType().add(CardType.CREATURE);
filter.setNotCardType(true);
filter.getNotCardType().add(CardType.CREATURE);
}
public SpellPierce(UUID ownerId) {