mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
PicCount was not being updated when filtered by set.
This commit is contained in:
@@ -337,6 +337,12 @@ public class Gui_DeckEditor extends JFrame implements CardContainer, DeckDisplay
|
|||||||
|
|
||||||
if (SetInfoUtil.getSetInfo_Code(c.getSets(), SC) != null) {
|
if (SetInfoUtil.getSetInfo_Code(c.getSets(), SC) != null) {
|
||||||
c.setCurSetCode(SC);
|
c.setCurSetCode(SC);
|
||||||
|
|
||||||
|
Random r = new Random();
|
||||||
|
int n = SetInfoUtil.getSetInfo_Code(c.getSets(), SC).PicCount;
|
||||||
|
if (n > 1)
|
||||||
|
c.setRandomPicture(r.nextInt(n-1) + 1);
|
||||||
|
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
filterOut = !(result);
|
filterOut = !(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user