From 579951ee369067c00d1adde9490584bc37d1cdac Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 15 May 2013 00:46:38 +0200 Subject: [PATCH] Fixed bug of Council of the Absolute allowing to select all card nymes instead the correct not land and not creature names. --- Mage/src/mage/cards/repository/CardRepository.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/cards/repository/CardRepository.java b/Mage/src/mage/cards/repository/CardRepository.java index 5697ca16fa3..03663557a6e 100644 --- a/Mage/src/mage/cards/repository/CardRepository.java +++ b/Mage/src/mage/cards/repository/CardRepository.java @@ -32,6 +32,7 @@ import com.j256.ormlite.dao.DaoManager; import com.j256.ormlite.jdbc.JdbcConnectionSource; import com.j256.ormlite.stmt.QueryBuilder; import com.j256.ormlite.stmt.SelectArg; +import com.j256.ormlite.stmt.Where; import com.j256.ormlite.support.ConnectionSource; import com.j256.ormlite.table.TableUtils; import java.io.File; @@ -170,7 +171,8 @@ public enum CardRepository { try { QueryBuilder qb = cardDao.queryBuilder(); qb.distinct().selectColumns("name"); - qb.where().not().in("types", CardType.LAND.name(), CardType.CREATURE.name()); + Where where = qb.where(); + where.and(where.not().like("types", '%' + CardType.CREATURE.name() +'%'),where.not().like("types", '%' + CardType.LAND.name() + '%')); List results = cardDao.query(qb.prepare()); for (CardInfo card : results) { names.add(card.getName());