From 53fbe7e502ee480ce7a441edc14cb8bd2ca49c13 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 8 Apr 2019 13:43:28 -0400 Subject: [PATCH] updated WAR booster checking to guarantee exactly one walker in every pack --- Mage/src/main/java/mage/cards/ExpansionSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/cards/ExpansionSet.java b/Mage/src/main/java/mage/cards/ExpansionSet.java index d7b83ed533..ba8ac8073f 100644 --- a/Mage/src/main/java/mage/cards/ExpansionSet.java +++ b/Mage/src/main/java/mage/cards/ExpansionSet.java @@ -258,7 +258,7 @@ public abstract class ExpansionSet implements Serializable { return booster.stream().anyMatch(card -> card.isLegendary() && card.isCreature()); } if (needsPlaneswalker) { - return booster.stream().anyMatch(card -> card.isPlaneswalker()); + return booster.stream().filter(card -> card.isPlaneswalker()).count() == 1; } // TODO: add partner check