The card objects in ExpansionSet should not be used. Fixes the testing problem where adding multiple copies of the card would cause incorrect behavior.

This commit is contained in:
North 2012-04-05 23:13:05 +03:00
parent e92d3e146f
commit 9386f82bd2

View file

@ -255,7 +255,9 @@ public class Sets extends HashMap<String, ExpansionSet> {
}
}
if (cardsFound.size() > 0) {
return cardsFound.get(rnd.nextInt(cardsFound.size()));
Card card = cardsFound.get(rnd.nextInt(cardsFound.size()));
String cardClassName = card.getClass().getName();
return CardImpl.createCard(cardClassName);
}
}
return null;