Fix Niv-Mizzet Reborn revealing cards twice

This commit is contained in:
PurpleCrowbar 2023-04-22 02:39:15 +01:00
parent 24bd4315c6
commit 653cec11ef

View file

@ -1,7 +1,6 @@
package mage.cards.n;
import mage.MageInt;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
@ -14,11 +13,9 @@ import mage.game.Game;
import mage.players.Player;
import mage.target.TargetCard;
import mage.target.common.TargetCardInLibrary;
import mage.util.CardUtil;
import java.util.Objects;
import java.util.UUID;
import java.util.stream.Collectors;
/**
* @author TheElk801
@ -76,9 +73,6 @@ class NivMizzetRebornEffect extends OneShotEffect {
return false;
}
Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 10));
game.informPlayers(player.getLogName() + " reveals " + CardUtil.concatWithAnd(
cards.getCards(game).stream().map(MageObject::getName).collect(Collectors.toList())
));
if (cards.isEmpty()) {
return false;
}