* Some rework of card movement.

This commit is contained in:
LevelX2 2015-08-04 17:54:17 +02:00
parent 96bbe01aae
commit a644e66b7f
83 changed files with 798 additions and 816 deletions

View file

@ -93,14 +93,12 @@ public class SearchLibraryPutInHandEffect extends SearchEffect {
if (target.getTargets().size() > 0) {
Cards cards = new CardsImpl();
for (UUID cardId : target.getTargets()) {
Card card = controller.getLibrary().remove(cardId, game);
Card card = game.getCard(cardId);
if (card != null) {
controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, revealCards);
if (revealCards) {
cards.add(card);
}
cards.add(card);
}
}
controller.moveCards(cards, null, Zone.HAND, source, game);
if (revealCards) {
String name = "Reveal";
Card sourceCard = game.getCard(source.getSourceId());