mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Only sets a random set code for cards that do not already have one. Enables the possibility that cards generated in set-specific boosters can maintain their set code.
This commit is contained in:
@@ -2381,7 +2381,7 @@ public class GameAction {
|
||||
n = Integer.parseInt(PC);
|
||||
if (n > 1)
|
||||
card.setRandomPicture(generator.nextInt(n));
|
||||
if (card.getSets().size() > 0)
|
||||
if ((card.getSets().size() > 0) && card.getCurSetCode().equals(""))
|
||||
card.setRandomSetCode();
|
||||
|
||||
//System.out.println("human random number:" + card.getRandomPicture());
|
||||
@@ -2404,7 +2404,7 @@ public class GameAction {
|
||||
card.setRandomPicture(generator.nextInt(n));
|
||||
//System.out.println("computer random number:" + card.getRandomPicture());
|
||||
//}
|
||||
if (card.getSets().size() > 0)
|
||||
if ((card.getSets().size() > 0) && card.getCurSetCode().equals(""))
|
||||
card.setRandomSetCode();
|
||||
|
||||
AllZone.Computer_Library.add(card);
|
||||
|
||||
Reference in New Issue
Block a user