Merge pull request #6247 from Dilnu/Reborn

Fix Niv Mizzet Reborn
This commit is contained in:
Oleg Agafonov 2020-02-03 23:44:56 +01:00 committed by GitHub
commit cbfcfa6d5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ class NivMizzetRebornEffect extends OneShotEffect {
}
private TargetCard getTarget() {
return new TargetCardInLibrary(makeFilter());
return new TargetCard(Zone.LIBRARY, makeFilter());
}
private String getDescription() {
@ -134,6 +134,8 @@ class NivMizzetRebornEffect extends OneShotEffect {
return false;
}
Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 10));
game.informPlayers(player.getName() + " reveals " +
cards.getCards(game).stream().map(card -> card.getName() + " ").reduce((a, b) -> a + b));
Cards cards2 = new CardsImpl();
if (cards.isEmpty()) {
return false;