mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38: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);
|
candidates.remove(result);
|
||||||
result = Aggregates.random(candidates);
|
result = Aggregates.random(candidates);
|
||||||
}
|
}
|
||||||
}
|
} else if (reqEdition == null) {
|
||||||
else {
|
return cards.iterator().next();
|
||||||
|
} else {
|
||||||
for (PaperCard pc : cards) {
|
for (PaperCard pc : cards) {
|
||||||
if (pc.getEdition().equalsIgnoreCase(reqEdition) && request.artIndex == pc.getArtIndex()) {
|
if (pc.getEdition().equalsIgnoreCase(reqEdition) && request.artIndex == pc.getArtIndex()) {
|
||||||
result = pc;
|
result = pc;
|
||||||
|
|||||||
Reference in New Issue
Block a user