Generic mana fix for deck generation

This commit is contained in:
austinio7116
2018-04-20 19:11:52 +01:00
committed by maustin
parent 51bf8a5286
commit e6c4f6c703

View File

@@ -513,8 +513,7 @@ 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().getColorIdentity().hasNoColorsExcept(colors)
&& !deckListNames.contains(card.getName())
&& !card.getRules().getAiHints().getRemAIDecks()
&& !card.getRules().getAiHints().getRemRandomDecks()
@@ -747,9 +746,8 @@ 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())
&& card.getRules().getColorIdentity().hasNoColorsExcept(colors)
&& colors.containsAllColorsFrom(card.getRules().getColorIdentity().getColor())
&& !deckListNames.contains(card.getName())
&&!card.getRules().getAiHints().getRemAIDecks()
&&!card.getRules().getAiHints().getRemRandomDecks()