mirror of
https://github.com/correl/mage.git
synced 2025-01-14 03:00:10 +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) {
|
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;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue