Minor shuffle fix

This commit is contained in:
L_J 2018-10-04 22:43:23 +00:00 committed by GitHub
parent 297b543630
commit 57fdae9c92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,9 +273,6 @@ class JaceArchitectOfThoughtEffect3 extends OneShotEffect {
playerList.remove(playerId); playerList.remove(playerId);
} }
} }
if (!checkList.contains(playerId)) {
player.shuffleLibrary(source, game); // only one shuffle per library (to prevent bad interactions with Psychogenic Probe etc.)
}
} }
checkList.add(playerId); checkList.add(playerId);
} else { } else {
@ -288,7 +285,12 @@ class JaceArchitectOfThoughtEffect3 extends OneShotEffect {
} }
} }
} }
for (UUID playerId : checkList) {
Player player = game.getPlayer(playerId);
if (player != null) {
player.shuffleLibrary(source, game);
}
}
ExileZone jaceExileZone = game.getExile().getExileZone(CardUtil.getCardExileZoneId(game, source)); ExileZone jaceExileZone = game.getExile().getExileZone(CardUtil.getCardExileZoneId(game, source));
if (jaceExileZone == null) { if (jaceExileZone == null) {
return true; return true;