Get Paper Card for unknown edition

This commit is contained in:
Lyu Zong-Hong
2021-07-27 22:17:10 +09:00
parent 3a1bd57fcb
commit 26adc5ca7b

View File

@@ -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;