mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Merge branch 'master' of https://git.cardforge.org/core-developers/forge
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user