From 080d0ad46d8a5fb370ae4938afb7ad040810983d Mon Sep 17 00:00:00 2001 From: Sloth Date: Wed, 14 Dec 2011 10:23:46 +0000 Subject: [PATCH] - Fixed changes in buildDeck of BoosterDraftAI. --- src/main/java/forge/game/limited/BoosterDraftAI.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/forge/game/limited/BoosterDraftAI.java b/src/main/java/forge/game/limited/BoosterDraftAI.java index aab21a6a613..27e8b6005e8 100644 --- a/src/main/java/forge/game/limited/BoosterDraftAI.java +++ b/src/main/java/forge/game/limited/BoosterDraftAI.java @@ -384,8 +384,8 @@ public class BoosterDraftAI { // 1.Add up to 15 on-color creatures int i = 0; - while (nCreatures > 0 && creatures.size() > i) { - final Card c = creatures.get(i); + while (nCreatures > 0 && creatures.size() > 0) { + final Card c = creatures.get(0); outList.add(c); 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; - while (cardsNeeded > 0 && (i < creatures.size())) { - final Card c = creatures.get(i); + // 3.Try to fill up to 22 with on-color creatures cards (if more than 15 are present) + while (cardsNeeded > 0 && (0 < creatures.size())) { + final Card c = creatures.get(0); outList.add(c); cardsNeeded--;