mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
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:
parent
e92d3e146f
commit
9386f82bd2
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue