mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
updated WAR details
This commit is contained in:
parent
47cd85b436
commit
54a1010c36
2 changed files with 6 additions and 2 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue