mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Avoid putting RemAIDeck 2-color / 3-color mana producing lands into randomly generated AI decks.
This commit is contained in:
@@ -437,6 +437,9 @@ public abstract class DeckGeneratorBase {
|
||||
final List<String> dLands = new ArrayList<String>();
|
||||
Pattern p = Pattern.compile(pattern);
|
||||
for (PaperCard card:landCards){
|
||||
if (card.getRules().getAiHints().getRemAIDecks()) {
|
||||
continue;
|
||||
}
|
||||
Matcher matcher = p.matcher(card.getRules().getOracleText());
|
||||
while (matcher.find()) {
|
||||
List<String> manaColorNames = new ArrayList<>();
|
||||
@@ -463,6 +466,9 @@ public abstract class DeckGeneratorBase {
|
||||
colorLookup.put("Swamp","B");
|
||||
Pattern p = Pattern.compile(fetchPattern);
|
||||
for (PaperCard card:landCards){
|
||||
if (card.getRules().getAiHints().getRemAIDecks()) {
|
||||
continue;
|
||||
}
|
||||
Matcher matcher = p.matcher(card.getRules().getOracleText());
|
||||
while (matcher.find()) {
|
||||
List<String> manaColorNames = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user