mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fix mulligan with zero cards
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user