Fix Medomai's Prophecy (#6271)

Fixes https://github.com/magefree/mage/issues/6262
lookAtCards replaces old instances with the same name.
This commit is contained in:
Samuel Sandeen 2020-02-08 19:29:12 -05:00 committed by GitHub
parent 51424b1460
commit fb82303b85

View file

@ -146,9 +146,8 @@ class MedomaisProphecyLookEffect extends OneShotEffect {
.getPlayersInRange(source.getControllerId(), game)
.stream()
.map(game::getPlayer)
.map(Player::getLibrary)
.forEachOrdered(library -> controller.lookAtCards(
sourceObject.getIdName(), library.getFromTop(game), game
.forEachOrdered(player -> controller.lookAtCards(
sourceObject.getIdName() + " " + player.getName(), player.getLibrary().getFromTop(game), game
));
return true;
}