Prevent arbitrary shuffles from Jace ultimate

This commit is contained in:
L_J 2018-10-10 23:09:49 +00:00 committed by GitHub
parent b67107b1b5
commit 9939af8968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
package mage.cards.j; package mage.cards.j;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
@ -246,7 +247,7 @@ class JaceArchitectOfThoughtEffect3 extends OneShotEffect {
} }
List<UUID> playerList = new ArrayList<>(); List<UUID> playerList = new ArrayList<>();
playerList.addAll(game.getState().getPlayersInRange(controller.getId(), game)); playerList.addAll(game.getState().getPlayersInRange(controller.getId(), game));
List<UUID> checkList = new ArrayList<>(); Set<UUID> checkList = new HashSet<>();
while (!playerList.isEmpty()) { while (!playerList.isEmpty()) {
FilterPlayer filter = new FilterPlayer(); FilterPlayer filter = new FilterPlayer();
List<PlayerIdPredicate> playerPredicates = new ArrayList<>(); List<PlayerIdPredicate> playerPredicates = new ArrayList<>();