- Fix a crash in the multiple art processing code related to cards not assigned to any edition.

This commit is contained in:
Agetian
2014-01-15 07:50:27 +00:00
parent a5a0c510b5
commit c64ef5deed

View File

@@ -174,7 +174,7 @@ public final class CardDb implements ICardDatabase {
? ( fromLastSet ? this.uniqueCardsByName.get(splitName.get(0)) : tryGetCard(splitName.get(0), Aggregates.random(this.allCardsByName.get(splitName.get(0))).getEdition(), -1))
: tryGetCard(splitName.get(0), splitName.get(1), Integer.parseInt(splitName.get(2)));
if (fromLastSet && null != res) {
if (fromLastSet && null != res && CardEdition.UNKNOWN.getCode() != res.getEdition()) {
final PaperCard res_randart = tryGetCard(res.getName(), res.getEdition(), Integer.parseInt(splitName.get(2)));
return null != res_randart && isFoil ? getFoiled(res_randart) : res_randart;
}