Fix mulligan with zero cards

This commit is contained in:
tool4EvEr
2021-08-05 21:42:04 +02:00
parent 1d4f68d95f
commit 32b4407b04
3 changed files with 2 additions and 3 deletions

View File

@@ -2066,7 +2066,7 @@ public class ComputerUtil {
// Computer mulligans if there are no cards with converted mana cost of 0 in its hand
public static boolean wantMulligan(Player ai, int cardsToReturn) {
final CardCollectionView handList = ai.getCardsIn(ZoneType.Hand);
return scoreHand(handList, ai, cardsToReturn) <= 0;
return !handList.isEmpty() && scoreHand(handList, ai, cardsToReturn) <= 0;
}
public static CardCollection getPartialParisCandidates(Player ai) {