mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Fix for colourless brawl commanders
This commit is contained in:
@@ -749,8 +749,9 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
|
||||
@Override
|
||||
public boolean apply(PaperCard card) {
|
||||
return format.isLegalCard(card)
|
||||
&&!card.getRules().getManaCost().isPureGeneric()
|
||||
&& colors.containsAllColorsFrom(card.getRules().getColorIdentity().getColor())
|
||||
&&((!card.getRules().getManaCost().isPureGeneric()
|
||||
&& colors.containsAllColorsFrom(card.getRules().getColorIdentity().getColor()))||
|
||||
card.getRules().getManaCost().isPureGeneric())
|
||||
&& !deckListNames.contains(card.getName())
|
||||
&&!card.getRules().getAiHints().getRemAIDecks()
|
||||
&&!card.getRules().getAiHints().getRemRandomDecks()
|
||||
@@ -765,7 +766,9 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
|
||||
if (secondKeyCard != null) {
|
||||
possibleList.removeAll(StaticData.instance().getCommonCards().getAllCards(secondKeyCard.getName()));
|
||||
}
|
||||
List<PaperCard> randomPool = CardRanker.rankCardsInDeck(possibleList).subList(0,new Float(possibleList.size()*0.25).intValue());
|
||||
//reduce pool to more powerful cards to use as filler
|
||||
int poolSize = new Float(possibleList.size()*0.25).intValue();
|
||||
List<PaperCard> randomPool = CardRanker.rankCardsInDeck(possibleList).subList(0,poolSize);
|
||||
Collections.shuffle(randomPool);
|
||||
Iterator<PaperCard> iRandomPool=randomPool.iterator();
|
||||
for(int i=0;i<num;++i){
|
||||
|
||||
Reference in New Issue
Block a user