Prevent arbitrary library search triggers from Jace ultimate

This commit is contained in:
L_J 2018-10-10 22:55:42 +00:00 committed by GitHub
parent bf4988382e
commit b67107b1b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,7 +265,7 @@ class JaceArchitectOfThoughtEffect3 extends OneShotEffect {
playerName = "your"; playerName = "your";
} }
TargetCardInLibrary target = new TargetCardInLibrary(new FilterNonlandCard(new StringBuilder("nonland card from ").append(playerName).append(" library").toString())); TargetCardInLibrary target = new TargetCardInLibrary(new FilterNonlandCard(new StringBuilder("nonland card from ").append(playerName).append(" library").toString()));
if (controller.searchLibrary(target, game, playerId)) { if (controller.searchLibrary(target, game, playerId, !checkList.contains(playerId))) {
checkList.add(playerId); checkList.add(playerId);
UUID targetId = target.getFirstTarget(); UUID targetId = target.getFirstTarget();
Card card = player.getLibrary().remove(targetId, game); Card card = player.getLibrary().remove(targetId, game);