forked from External/mage
* Fixed more possible endless loops of while iterations not ending if a asked player left game.
This commit is contained in:
parent
6b817b0669
commit
53b8f1977a
67 changed files with 170 additions and 160 deletions
|
|
@ -136,7 +136,7 @@ class SylvanLibraryEffect extends OneShotEffect {
|
|||
if (numberOfCardsToPutBack > 1) {
|
||||
TargetCard target2 = new TargetCard(Zone.PICK, new FilterCard("card to put on the top of your library (last chosen will be on top)"));
|
||||
target2.setRequired(true);
|
||||
while (cardsPutBack.size() > 1) {
|
||||
while (controller.isInGame() && cardsPutBack.size() > 1) {
|
||||
controller.choose(Outcome.Benefit, cardsPutBack, target2, game);
|
||||
Card card = cardsPutBack.get(target2.getFirstTarget(), game);
|
||||
if (card != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue