mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Improved performance of checking deck format legality
This commit is contained in:
@@ -482,11 +482,11 @@ public class GameFormat implements Comparable<GameFormat> {
|
||||
//exclude Digital formats from lists for now
|
||||
continue;
|
||||
}
|
||||
if (gf.isPoolLegal(allCards)) {
|
||||
if (gf.getFormatType().equals(FormatType.Historic) && coveredTypes.contains(gf.getFormatSubType())){
|
||||
//exclude duplicate formats - only keep first of e.g. Standard historical
|
||||
continue;
|
||||
}
|
||||
if (gf.isPoolLegal(allCards)) {
|
||||
result.add(gf);
|
||||
coveredTypes.add(gf.getFormatSubType());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user