Updating standard (don't merge until 9/24) (#8297)

* removed rotated cards from standard ban list

* updated standard legality to handle sets releasing after fall set inn the same year

* some more updates to standard

* small change
This commit is contained in:
Evan Kranzler 2021-09-24 22:07:12 -04:00 committed by GitHub
parent c6e385e321
commit b895611c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 46 deletions

View file

@ -87,6 +87,19 @@ public abstract class ExpansionSet implements Serializable {
}
}
private static enum ExpansionSetComparator implements Comparator<ExpansionSet> {
instance;
@Override
public int compare(ExpansionSet lhs, ExpansionSet rhs) {
return lhs.getReleaseDate().after(rhs.getReleaseDate()) ? -1 : 1;
}
}
public static ExpansionSetComparator getComparator() {
return ExpansionSetComparator.instance;
}
protected final List<SetCardInfo> cards = new ArrayList<>();
protected String name;