forked from External/mage
Some fixes to putOnTop/buttomOfLibrary of player to handle cards and permanents.
This commit is contained in:
parent
f9f6fd2d2d
commit
d4044536cb
2 changed files with 41 additions and 36 deletions
|
|
@ -110,7 +110,11 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
|
|||
iterator.remove();
|
||||
}
|
||||
}
|
||||
owner.putCardsOnTopOfLibrary(cardsPlayer, game, source, onTop);
|
||||
if (onTop) {
|
||||
owner.putCardsOnTopOfLibrary(cardsPlayer, game, source, true);
|
||||
} else {
|
||||
owner.putCardsOnBottomOfLibrary(cardsPlayer, game, source, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
while (!permanents.isEmpty()) {
|
||||
|
|
@ -125,7 +129,11 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
|
|||
iterator.remove();
|
||||
}
|
||||
}
|
||||
owner.putCardsOnTopOfLibrary(cardsPlayer, game, source, onTop);
|
||||
if (onTop) {
|
||||
owner.putCardsOnTopOfLibrary(cardsPlayer, game, source, true);
|
||||
} else {
|
||||
owner.putCardsOnBottomOfLibrary(cardsPlayer, game, source, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue