updated WAR details

This commit is contained in:
Evan Kranzler 2019-03-31 17:59:28 -04:00
parent 47cd85b436
commit 54a1010c36
2 changed files with 6 additions and 2 deletions

View file

@ -15,12 +15,12 @@ public final class WarOfTheSpark extends ExpansionSet {
private WarOfTheSpark() {
super("War of the Spark", "WAR", ExpansionSet.buildDate(2019, 5, 3), SetType.EXPANSION);
this.blockName = "Guilds of Ravnica";
this.numBoosterSpecial = 1;
this.numBoosterLands = 0;
this.numBoosterLands = 1;
this.numBoosterCommon = 10;
this.numBoosterUncommon = 3;
this.numBoosterRare = 1;
this.ratioBoosterMythic = 8;
this.needsPlaneswalker = true;
this.maxCardNumberInBooster = 264;
cards.add(new SetCardInfo("Ajani's Pridemate", 4, Rarity.UNCOMMON, mage.cards.a.AjanisPridemate.class));

View file

@ -106,6 +106,7 @@ public abstract class ExpansionSet implements Serializable {
protected boolean hasPartnerMechanic = false;
protected boolean needsLegendCreature = false;
protected boolean needsPlaneswalker = false;
protected boolean validateBoosterColors = true;
protected double rejectMissingColorProbability = 0.8;
protected double rejectSameColorUncommonsProbability = 0.8;
@ -256,6 +257,9 @@ public abstract class ExpansionSet implements Serializable {
if (needsLegendCreature) {
return booster.stream().anyMatch(card -> card.isLegendary() && card.isCreature());
}
if (needsPlaneswalker) {
return booster.stream().anyMatch(card -> card.isPlaneswalker());
}
// TODO: add partner check
// TODO: add booster size check?