[Bug] Fix egg gacha 10x pull option working with just one voucher (#6349)

Fix 10x egg gacha being usable with only 1 voucher
This commit is contained in:
Sirz Benjie 2025-08-22 20:52:50 -05:00 committed by GitHub
parent 7af128f68a
commit abd9ebbdef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -743,7 +743,7 @@ export class EggGachaUiHandler extends MessageUiHandler {
if (!freePulls && globalScene.gameData.eggs.length + pulls > 99) {
errorKey = "egg:tooManyEggs";
} else if (!freePulls && !globalScene.gameData.voucherCounts[voucherType]) {
} else if (!freePulls && globalScene.gameData.voucherCounts[voucherType] < vouchersConsumed) {
errorKey = "egg:notEnoughVouchers";
}