updated WAR booster checking to guarantee exactly one walker in every pack

This commit is contained in:
Evan Kranzler 2019-04-08 13:43:28 -04:00
parent 6244db99f8
commit 53fbe7e502

View file

@ -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