mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
Adding lookAtAllLibraries to Player/PlayerImpl and using that method during JAOT's -8 resolution
This commit is contained in:
parent
02d9287cfa
commit
c5cedc2aba
3 changed files with 23 additions and 0 deletions
|
|
@ -239,12 +239,14 @@ class JaceArchitectOfThoughtEffect3 extends OneShotEffect {
|
|||
if (controller == null || sourcePermanent == null) {
|
||||
return false;
|
||||
}
|
||||
controller.lookAtAllLibraries(source, game);
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
String playerName = new StringBuilder(player.getLogName()).append("'s").toString();
|
||||
if (source.isControlledBy(player.getId())) {
|
||||
playerName = "your";
|
||||
}
|
||||
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(new FilterNonlandCard(new StringBuilder("nonland card from ").append(playerName).append(" library").toString()));
|
||||
if (controller.searchLibrary(target, game, playerId)) {
|
||||
UUID targetId = target.getFirstTarget();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue