mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Fix a crash in the multiple art processing code related to cards not assigned to any edition.
This commit is contained in:
@@ -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))
|
? ( 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)));
|
: 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)));
|
final PaperCard res_randart = tryGetCard(res.getName(), res.getEdition(), Integer.parseInt(splitName.get(2)));
|
||||||
return null != res_randart && isFoil ? getFoiled(res_randart) : res_randart;
|
return null != res_randart && isFoil ? getFoiled(res_randart) : res_randart;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user