Some fixes to putOnTop/buttomOfLibrary of player to handle cards and permanents.

This commit is contained in:
LevelX2 2014-12-11 14:55:26 +01:00
parent f9f6fd2d2d
commit d4044536cb
2 changed files with 41 additions and 36 deletions

View file

@ -110,7 +110,11 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
iterator.remove();
}
}
owner.putCardsOnTopOfLibrary(cardsPlayer, game, source, onTop);
if (onTop) {
owner.putCardsOnTopOfLibrary(cardsPlayer, game, source, true);
} else {
owner.putCardsOnBottomOfLibrary(cardsPlayer, game, source, true);
}
}
}
while (!permanents.isEmpty()) {
@ -125,7 +129,11 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
iterator.remove();
}
}
owner.putCardsOnTopOfLibrary(cardsPlayer, game, source, onTop);
if (onTop) {
owner.putCardsOnTopOfLibrary(cardsPlayer, game, source, true);
} else {
owner.putCardsOnBottomOfLibrary(cardsPlayer, game, source, true);
}
}
}
return true;