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:
jendave
2011-08-06 12:05:56 +00:00
parent e6e5cd2665
commit c6bf64ea58

View File

@@ -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);