diff --git a/Mage.Sets/src/mage/sets/odyssey/Entomb.java b/Mage.Sets/src/mage/sets/odyssey/Entomb.java index 5a61b057bc..bcdfe72530 100644 --- a/Mage.Sets/src/mage/sets/odyssey/Entomb.java +++ b/Mage.Sets/src/mage/sets/odyssey/Entomb.java @@ -29,18 +29,17 @@ package mage.sets.odyssey; import java.util.List; import java.util.UUID; - -import mage.constants.CardType; -import mage.constants.Rarity; import mage.abilities.Ability; import mage.abilities.effects.SearchEffect; import mage.cards.Card; import mage.cards.CardImpl; import mage.cards.Cards; import mage.cards.CardsImpl; +import mage.constants.CardType; import mage.constants.Outcome; +import mage.constants.Rarity; import mage.constants.Zone; -import mage.filter.common.FilterCreatureCard; +import mage.filter.FilterCard; import mage.game.Game; import mage.players.Player; import mage.target.common.TargetCardInLibrary; @@ -75,7 +74,7 @@ public class Entomb extends CardImpl { class SearchLibraryPutInGraveyard extends SearchEffect { public SearchLibraryPutInGraveyard() { - super(new TargetCardInLibrary(new FilterCreatureCard()), Outcome.Neutral); + super(new TargetCardInLibrary(new FilterCard()), Outcome.Neutral); staticText = "Search your library for a card and put that card into your graveyard. Then shuffle your library"; } @@ -90,26 +89,24 @@ class SearchLibraryPutInGraveyard extends SearchEffect 0) { - Cards cards = new CardsImpl(); for (UUID cardId: (List)target.getTargets()) { - Card card = player.getLibrary().remove(cardId, game); - if (card != null){ - card.moveToZone(Zone.GRAVEYARD, source.getId(), game, false); + Card card = controller.getLibrary().remove(cardId, game); + if (card != null) { + controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY); } } } - player.shuffleLibrary(game); - return true; + result = true; } - player.shuffleLibrary(game); - return false; + controller.shuffleLibrary(game); + return result; } - }