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

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