feat: Implement card pool depletion handling and wildcard rarity fallback for pack generation
All checks were successful
Build and Deploy / build (push) Successful in 1m17s

This commit is contained in:
2025-12-17 14:16:02 +01:00
parent 80de286777
commit 245ab6414a
4 changed files with 123 additions and 81 deletions

View File

@@ -135,6 +135,10 @@ app.post('/api/packs/generate', async (req: Request, res: Response) => {
const setCards = await scryfallService.fetchSetCards(code);
poolCards.push(...setCards);
}
// Force infinite card pool for Expansion mode
if (settings) {
settings.withReplacement = true;
}
}
// Default filters if missing