mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
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:
parent
c6e385e321
commit
b895611c4d
2 changed files with 41 additions and 46 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue