Remove dual lands from mono coloured generated decks

This commit is contained in:
austinio7116
2018-03-01 16:07:09 +00:00
committed by maustin
parent 52d8e3d54f
commit 9cfc42156d

View File

@@ -677,7 +677,8 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
// (a) dual-land of the correct two colors, or // (a) dual-land of the correct two colors, or
// (b) a land that generates colorless mana and has some other // (b) a land that generates colorless mana and has some other
// beneficial effect. // beneficial effect.
if (!card.getRules().getColorIdentity().isColorless() && card.getRules().getColorIdentity().getSharedColors(colors).countColors()==0){ if (!card.getRules().getColorIdentity().isColorless() && card.getRules().getColorIdentity().getSharedColors(colors).countColors()==0
|| card.getRules().getColorIdentity().isMulticolor()&&colors.isMonoColor()){//remove dual lands from mono coloured decks
//skip as does not match colours //skip as does not match colours
if (logToConsole) { if (logToConsole) {
System.out.println("Excluding NonBasicLand: " + card.getName()); System.out.println("Excluding NonBasicLand: " + card.getName());