This commit is contained in:
churrufli
2019-04-09 14:21:03 +02:00
57 changed files with 570 additions and 17 deletions

View File

@@ -6,7 +6,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>1.6.23-SNAPSHOT</version>
<version>1.6.24-SNAPSHOT</version>
</parent>
<artifactId>forge-game</artifactId>

View File

@@ -1032,8 +1032,9 @@ public class CardFactoryUtil {
// Count$TopOfLibraryCMC
if (sq[0].contains("TopOfLibraryCMC")) {
final Card topCard = cc.getCardsIn(ZoneType.Library).getFirst();
return doXMath(topCard == null ? 0 : topCard.getCMC(), m, c);
int cmc = cc.getCardsIn(ZoneType.Library).isEmpty() ? 0 :
cc.getCardsIn(ZoneType.Library).getFirst().getCMC();
return doXMath(cmc, m, c);
}
// Count$EnchantedControllerCreatures