Update ExpansionSet.java

This commit is contained in:
Chatziargyriou Eleftheria 2018-07-31 17:17:58 +03:00 committed by GitHub
parent 17cd5792d4
commit da383dbecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,7 +231,14 @@ public abstract class ExpansionSet implements Serializable {
return booster;
}
}
//Battlebond packs alway contain both partners
if (hasPartnerMechanic){
booster = createPartnerBooster();
return booster;
}
return tryBooster();
}
protected boolean boosterIsValid(List<Card> booster) {
@ -284,12 +291,6 @@ public abstract class ExpansionSet implements Serializable {
}
}
}
//Battlebond packs alway contain both partners
if (hasPartnerMechanic){
booster = createPartnerBooster();
return booster;
}
return tryBooster();
// check that all colors are present
if (magicColors.stream().anyMatch(color -> colorWeight.get(color) < 60)) {