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
All checks were successful
Build and Deploy / build (push) Successful in 1m17s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user