From 54a1010c368d3fa1c12de43b31bfd591efc0067d Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 31 Mar 2019 17:59:28 -0400 Subject: [PATCH] updated WAR details --- Mage.Sets/src/mage/sets/WarOfTheSpark.java | 4 ++-- Mage/src/main/java/mage/cards/ExpansionSet.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/WarOfTheSpark.java b/Mage.Sets/src/mage/sets/WarOfTheSpark.java index 4316db0a79..e5bb932f52 100644 --- a/Mage.Sets/src/mage/sets/WarOfTheSpark.java +++ b/Mage.Sets/src/mage/sets/WarOfTheSpark.java @@ -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)); diff --git a/Mage/src/main/java/mage/cards/ExpansionSet.java b/Mage/src/main/java/mage/cards/ExpansionSet.java index 855d42caed..d7b83ed533 100644 --- a/Mage/src/main/java/mage/cards/ExpansionSet.java +++ b/Mage/src/main/java/mage/cards/ExpansionSet.java @@ -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?