mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
updated historic legality implementation
This commit is contained in:
parent
fd19a29400
commit
8240e956dc
5 changed files with 9 additions and 7 deletions
|
@ -19,7 +19,7 @@ public class Historic extends Constructed {
|
|||
|
||||
Date cutoff = new GregorianCalendar(2017, Calendar.SEPTEMBER, 29).getTime(); // XLN release date
|
||||
for (ExpansionSet set : Sets.getInstance().values()) {
|
||||
if (set.getSetType().isStandardLegal() && (set.getReleaseDate().after(cutoff) || set.getReleaseDate().equals(cutoff))) {
|
||||
if (set.getSetType().isHistoricLegal() && (set.getReleaseDate().after(cutoff) || set.getReleaseDate().equals(cutoff))) {
|
||||
setCodes.add(set.getCode());
|
||||
}
|
||||
}
|
||||
|
@ -36,9 +36,6 @@ public class Historic extends Constructed {
|
|||
banned.add("Winota, Joiner of Forces");
|
||||
|
||||
// Individual cards added
|
||||
setCodes.add(mage.sets.HistoricAnthology1.getInstance().getCode());
|
||||
setCodes.add(mage.sets.HistoricAnthology2.getInstance().getCode());
|
||||
setCodes.add(mage.sets.HistoricAnthology3.getInstance().getCode());
|
||||
singleCards.add("Rhys the Redeemed");
|
||||
singleCards.add("Spiritual Guardian");
|
||||
singleCards.add("Sanctuary Cat");
|
||||
|
|
|
@ -18,7 +18,7 @@ public final class HistoricAnthology1 extends ExpansionSet {
|
|||
}
|
||||
|
||||
private HistoricAnthology1() {
|
||||
super("Historic Anthology 1", "HA1", ExpansionSet.buildDate(2019, 11, 21), SetType.MAGIC_ONLINE);
|
||||
super("Historic Anthology 1", "HA1", ExpansionSet.buildDate(2019, 11, 21), SetType.MAGIC_ARENA);
|
||||
this.hasBoosters = false;
|
||||
this.hasBasicLands = false;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ public final class HistoricAnthology2 extends ExpansionSet {
|
|||
}
|
||||
|
||||
private HistoricAnthology2() {
|
||||
super("Historic Anthology 2", "HA2", ExpansionSet.buildDate(2020, 3, 12), SetType.MAGIC_ONLINE);
|
||||
super("Historic Anthology 2", "HA2", ExpansionSet.buildDate(2020, 3, 12), SetType.MAGIC_ARENA);
|
||||
this.hasBoosters = false;
|
||||
this.hasBasicLands = false;
|
||||
cards.add(new SetCardInfo("Ancestral Mask", 13, Rarity.COMMON, mage.cards.a.AncestralMask.class));
|
||||
|
|
|
@ -17,7 +17,7 @@ public final class HistoricAnthology3 extends ExpansionSet {
|
|||
}
|
||||
|
||||
private HistoricAnthology3() {
|
||||
super("Historic Anthology 3", "HA3", ExpansionSet.buildDate(2020, 5, 21), SetType.SUPPLEMENTAL);
|
||||
super("Historic Anthology 3", "HA3", ExpansionSet.buildDate(2020, 5, 21), SetType.MAGIC_ARENA);
|
||||
this.blockName = "Reprint";
|
||||
this.hasBoosters = false;
|
||||
this.hasBasicLands = false;
|
||||
|
|
|
@ -48,4 +48,9 @@ public enum SetType {
|
|||
// any official sets that was in modern (standard + Modern Horizons)
|
||||
return this.isStandardLegal() || this == SetType.SUPPLEMENTAL_MODERN_LEGAL;
|
||||
}
|
||||
|
||||
public boolean isHistoricLegal() {
|
||||
// any set made for standard or specifically for arena
|
||||
return this.isStandardLegal() || this == SetType.MAGIC_ARENA;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue