mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fixed changes in buildDeck of BoosterDraftAI.
This commit is contained in:
@@ -384,8 +384,8 @@ public class BoosterDraftAI {
|
|||||||
|
|
||||||
// 1.Add up to 15 on-color creatures
|
// 1.Add up to 15 on-color creatures
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (nCreatures > 0 && creatures.size() > i) {
|
while (nCreatures > 0 && creatures.size() > 0) {
|
||||||
final Card c = creatures.get(i);
|
final Card c = creatures.get(0);
|
||||||
|
|
||||||
outList.add(c);
|
outList.add(c);
|
||||||
cardsNeeded--;
|
cardsNeeded--;
|
||||||
@@ -436,10 +436,10 @@ public class BoosterDraftAI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3.Try to fill up to 22 with on-color creatures cards (if more than 15 are present)
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (cardsNeeded > 0 && (i < creatures.size())) {
|
// 3.Try to fill up to 22 with on-color creatures cards (if more than 15 are present)
|
||||||
final Card c = creatures.get(i);
|
while (cardsNeeded > 0 && (0 < creatures.size())) {
|
||||||
|
final Card c = creatures.get(0);
|
||||||
|
|
||||||
outList.add(c);
|
outList.add(c);
|
||||||
cardsNeeded--;
|
cardsNeeded--;
|
||||||
|
|||||||
Reference in New Issue
Block a user