Improved getCount summing up the number of allowed sets in all selected blocks.

This commit is contained in:
leriomaggio
2021-07-04 21:09:38 +01:00
parent 96fa129285
commit 8977303c00

View File

@@ -66,7 +66,10 @@ public class CardBlockFilter extends CardSetFilter {
@Override
protected int getCount() {
return this.selectedBlocks.size();
int setCount = 0;
for (GameFormat block : this.selectedBlocks)
setCount += block.getAllowedSetCodes().size();
return setCount;
}
@Override