mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48: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();
|
final ArrayList<AbilityMana> maList = typeList.get(i).getManaAbility();
|
||||||
for (int j = 0; j < maList.size(); j++) {
|
for (int j = 0; j < maList.size(); j++) {
|
||||||
if (maList.get(j).canProduce(this.playerColors.get(player).getMana1())
|
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));
|
wouldPick.add(typeList.get(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -331,7 +331,9 @@ public class SealedDeck {
|
|||||||
public boolean addCard(final Card c) {
|
public boolean addCard(final Card c) {
|
||||||
final ArrayList<AbilityMana> maList = c.getManaAbility();
|
final ArrayList<AbilityMana> maList = c.getManaAbility();
|
||||||
for (int j = 0; j < maList.size(); j++) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user