mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18: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) {
|
||||
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;
|
||||
}
|
||||
filterOut = !(result);
|
||||
@@ -346,7 +352,7 @@ public class Gui_DeckEditor extends JFrame implements CardContainer, DeckDisplay
|
||||
if (!SC.equals(""))
|
||||
c.setCurSetCode(c.getMostRecentSet());
|
||||
}
|
||||
|
||||
|
||||
c.setImageFilename(CardUtil.buildFilename(c));
|
||||
|
||||
return filterOut;
|
||||
|
||||
Reference in New Issue
Block a user