Merge branch 'master' into AI_ATTACK_TIMEOUT

This commit is contained in:
kevlahnota
2024-11-22 06:13:37 +08:00
committed by GitHub
12 changed files with 39 additions and 40 deletions

View File

@@ -100,7 +100,7 @@ public final class ManaCost implements Comparable<ManaCost>, Iterable<ManaCostSh
}
int generic = parser.getTotalGenericCost(); // collect generic mana here
this.hasNoCost = generic == -1;
this.genericCost = generic == -1 ? 0 : generic;
this.genericCost = hasNoCost ? 0 : generic;
sealClass(shardsTemp);
}