* Fixed that a player doing a library search with a stated quality (701.15b) couldn't fail to find a card if cards with the stated quality did exist in the searched library.

This commit is contained in:
LevelX2 2015-09-14 23:36:32 +02:00
parent dbc9113d52
commit 8f64a2ab54
6 changed files with 183 additions and 45 deletions

View file

@ -28,11 +28,10 @@
package mage.sets.morningtide;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.filter.FilterCard;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.target.common.TargetCardInLibrary;
@ -42,7 +41,7 @@ import mage.target.common.TargetCardInLibrary;
*/
public class IdyllicTutor extends CardImpl {
private static final FilterCard filter = new FilterCard("enchantment");
private static final FilterCard filter = new FilterCard("an enchantment");
static {
filter.add(new CardTypePredicate(CardType.ENCHANTMENT));
@ -52,7 +51,6 @@ public class IdyllicTutor extends CardImpl {
super(ownerId, 12, "Idyllic Tutor", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{2}{W}");
this.expansionSetCode = "MOR";
// Search your library for an enchantment card, reveal it, and put it into your hand. Then shuffle your library.
this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true));
}