Fix logic for Henzie (#6402)

This commit is contained in:
tool4ever
2024-10-22 10:14:43 +02:00
committed by GitHub
parent 9dd712c18c
commit 031cd4176d
3 changed files with 14 additions and 9 deletions

View File

@@ -97,7 +97,10 @@ public class ManaCostBeingPaid {
@Override
public int getTotalGenericCost() {
ShardCount c = unpaidShards.get(ManaCostShard.GENERIC);
return c == null ? 0 : c.totalCount;
if (c == null) {
return unpaidShards.isEmpty() ? -1 : 0;
}
return c.totalCount;
}
}