mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
modified to account for lands that use "Produced$ Any"
This commit is contained in:
@@ -231,7 +231,8 @@ public class BoosterDraftAI {
|
||||
final ArrayList<AbilityMana> maList = typeList.get(i).getManaAbility();
|
||||
for (int j = 0; j < maList.size(); j++) {
|
||||
if (maList.get(j).canProduce(this.playerColors.get(player).getMana1())
|
||||
|| maList.get(j).canProduce(this.playerColors.get(player).getMana2())) {
|
||||
|| maList.get(j).canProduce(this.playerColors.get(player).getMana2())
|
||||
|| maList.get(j).isAnyMana()) {
|
||||
wouldPick.add(typeList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,7 +331,9 @@ public class SealedDeck {
|
||||
public boolean addCard(final Card c) {
|
||||
final ArrayList<AbilityMana> maList = c.getManaAbility();
|
||||
for (int j = 0; j < maList.size(); j++) {
|
||||
if (maList.get(j).canProduce(aiDC.mana1) || maList.get(j).canProduce(aiDC.mana2)) {
|
||||
if (maList.get(j).canProduce(aiDC.mana1)
|
||||
|| maList.get(j).canProduce(aiDC.mana2)
|
||||
|| maList.get(j).isAnyMana()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user