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
|
|
@ -95,10 +95,11 @@ class MassPolymorphEffect extends OneShotEffect {
|
|||
while (creatureCards.size() < count && player.getLibrary().size() > 0) {
|
||||
Card card = player.getLibrary().removeFromTop(game);
|
||||
revealed.add(card);
|
||||
if (card.getCardType().contains(CardType.CREATURE))
|
||||
if (card.getCardType().contains(CardType.CREATURE)) {
|
||||
creatureCards.add(card);
|
||||
else
|
||||
} else {
|
||||
nonCreatureCards.add(card);
|
||||
}
|
||||
}
|
||||
player.revealCards("Mass Polymorph", revealed, game);
|
||||
for (Card creatureCard: creatureCards.getCards(game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue