mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Remove dual lands from mono coloured generated decks
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user