mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Get Paper Card for unknown edition
This commit is contained in:
@@ -403,8 +403,9 @@ public final class CardDb implements ICardDatabase, IDeckGenPool {
|
||||
candidates.remove(result);
|
||||
result = Aggregates.random(candidates);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else if (reqEdition == null) {
|
||||
return cards.iterator().next();
|
||||
} else {
|
||||
for (PaperCard pc : cards) {
|
||||
if (pc.getEdition().equalsIgnoreCase(reqEdition) && request.artIndex == pc.getArtIndex()) {
|
||||
result = pc;
|
||||
|
||||
Reference in New Issue
Block a user