mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Generic mana fix for deck generation
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user