Exclude custom sets from constructed formats.

This commit is contained in:
Lymia Aluysia 2016-09-24 14:15:47 -05:00
parent 238c88a8b6
commit 74a017586a
No known key found for this signature in database
GPG key ID: DB2E204C989251F7
3 changed files with 42 additions and 25 deletions

View file

@ -68,6 +68,8 @@ public abstract class ExpansionSet implements Serializable {
protected String packageName;
protected int maxCardNumberInBooster; // used to ommit cards with collector numbers beyond the regular cards in a set for boosters
protected boolean isCustomSet = false;
protected final EnumMap<Rarity, List<CardInfo>> savedCards;
public ExpansionSet(String name, String code, String packageName, Date releaseDate, SetType setType) {
@ -374,6 +376,8 @@ public abstract class ExpansionSet implements Serializable {
return null;
}
public boolean isCustomSet() { return isCustomSet; }
public void removeSavedCards() {
savedCards.clear();
}