mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Fixed Flying WU theme.
This commit is contained in:
@@ -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