mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Fixed Flying WU theme.
This commit is contained in:
@@ -2,7 +2,7 @@ BasicLandPercentage=14
|
|||||||
|
|
||||||
[Group MaxCnt=4 Percentage=22]
|
[Group MaxCnt=4 Percentage=22]
|
||||||
Tundra
|
Tundra
|
||||||
Jwar Isle Refuge
|
Jwar Isle Refuge
|
||||||
Flooded Strand
|
Flooded Strand
|
||||||
Seachrome Coast
|
Seachrome Coast
|
||||||
Glacial Fortress
|
Glacial Fortress
|
||||||
|
|||||||
@@ -118,13 +118,13 @@ public class GenerateThemeDeck extends GenerateColoredDeckBase {
|
|||||||
s = g.cardnames.get(r.nextInt(cnSize));
|
s = g.cardnames.get(r.nextInt(cnSize));
|
||||||
|
|
||||||
int lc = 0;
|
int lc = 0;
|
||||||
while ((cardCounts.get(s) >= g.maxCnt) || (lc > size)) {
|
while ((cardCounts.get(s) >= g.maxCnt) || (lc > 999)) {
|
||||||
// looping
|
// looping
|
||||||
// forever
|
// forever
|
||||||
s = g.cardnames.get(r.nextInt(cnSize));
|
s = g.cardnames.get(r.nextInt(cnSize));
|
||||||
lc++;
|
lc++;
|
||||||
}
|
}
|
||||||
if (lc > size) {
|
if (lc > 999) {
|
||||||
throw new RuntimeException("GenerateThemeDeck : getThemeDeck -- looped too much -- filename is "
|
throw new RuntimeException("GenerateThemeDeck : getThemeDeck -- looped too much -- filename is "
|
||||||
+ tFileName);
|
+ tFileName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user