From 59c50436ace6d5d475728ca3ed2cc4a61110f5de Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 3 Jun 2015 17:06:46 +0200 Subject: [PATCH] Minor change. --- .../common/search/SearchLibraryPutOnLibraryEffect.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/search/SearchLibraryPutOnLibraryEffect.java b/Mage/src/mage/abilities/effects/common/search/SearchLibraryPutOnLibraryEffect.java index 33e6558d8e..65e05e6584 100644 --- a/Mage/src/mage/abilities/effects/common/search/SearchLibraryPutOnLibraryEffect.java +++ b/Mage/src/mage/abilities/effects/common/search/SearchLibraryPutOnLibraryEffect.java @@ -78,22 +78,22 @@ public class SearchLibraryPutOnLibraryEffect extends SearchEffect { @Override public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); - MageObject sourceObject = game.getObject(source.getSourceId()); + MageObject sourceObject = source.getSourceObject(game); if (controller == null || sourceObject == null) { return false; } if (controller.searchLibrary(target, game)) { List cards = new ArrayList<>(); - for (UUID cardId: (List)target.getTargets()) { + for (UUID cardId: target.getTargets()) { Card card = controller.getLibrary().remove(cardId, game); if (card != null) { cards.add(card); } } Cards foundCards = new CardsImpl(); - foundCards.addAll(cards); + foundCards.addAll(target.getTargets()); if (reveal) { - controller.revealCards(sourceObject.getName(), foundCards, game); + controller.revealCards(sourceObject.getIdName(), foundCards, game); } if (forceShuffle) { controller.shuffleLibrary(game); @@ -117,7 +117,7 @@ public class SearchLibraryPutOnLibraryEffect extends SearchEffect { StringBuilder sb = new StringBuilder(); sb.append("Search your library for a ").append(target.getTargetName()); if (reveal) { - sb.append("and reveal that card. Shuffle"); + sb.append(" and reveal that card. Shuffle"); } else { sb.append(", then shuffle"); }