Added support for varying number of sets in the starter pack code. (So you could play a sealed game with, say, one starter pack and one booster by modifying blocks.txt.) --BBU

This commit is contained in:
RumbleBBU
2012-09-03 07:04:33 +00:00
parent ba6f44a1a8
commit 068032efb0

View File

@@ -115,9 +115,7 @@ public class SealedDeckFormat {
int starter1idx = -1;
int starter2idx = -2;
if (nPacks > 5) { // paranoia...
for (int j = 5; j >= 0 && !starter2; j--) {
for (int j = nPacks - 1; j >= 0 && !starter2; j--) {
if (Singletons.getModel().getTournamentPacks().contains(pp[j])) {
if (starter1) {
@@ -141,7 +139,7 @@ public class SealedDeckFormat {
}
}
}
}
if (starter1 || starter2) {
final List<String> starterPacks = new ArrayList<String>();