modified to account for lands that use "Produced$ Any"

This commit is contained in:
ArsenalNut
2011-12-31 21:16:16 +00:00
parent 020b98a737
commit 0690743192
2 changed files with 5 additions and 2 deletions

View File

@@ -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));
}
}

View File

@@ -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;
}
}