mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Gonti, Lord of Luxury - Fixed a endless loop error.
This commit is contained in:
parent
844b36c7dc
commit
c971aea67d
1 changed files with 2 additions and 2 deletions
|
@ -146,9 +146,9 @@ class GontiLordOfLuxuryEffect extends OneShotEffect {
|
|||
effect.setTargetPointer(new FixedTarget(card.getId()));
|
||||
game.addEffect(effect, source);
|
||||
}
|
||||
while (!topCards.isEmpty()) {
|
||||
while (!topCards.isEmpty() && controller.isInGame()) {
|
||||
Card libCard = topCards.getRandom(game);
|
||||
topCards.remove(card);
|
||||
topCards.remove(libCard);
|
||||
controller.moveCardToLibraryWithInfo(libCard, source.getSourceId(), game, Zone.LIBRARY, false, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue