forked from External/mage
list.size > 0 changed to !list.isEmpty
We care about if it's empty or not, not about it's size
This commit is contained in:
parent
0de8bd2f70
commit
fc54c0156c
366 changed files with 532 additions and 548 deletions
|
|
@ -134,7 +134,7 @@ class CascadeEffect extends OneShotEffect {
|
|||
Cards cardsFromExile = new CardsImpl();
|
||||
Cards cardsToLibrary = new CardsImpl();
|
||||
cardsFromExile.addAll(exile);
|
||||
while (cardsFromExile.size() > 0) {
|
||||
while (!cardsFromExile.isEmpty()) {
|
||||
card = cardsFromExile.getRandom(game);
|
||||
cardsFromExile.remove(card.getId());
|
||||
cardsToLibrary.add(card);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue