From 76dbee78c1571052c74c090c864b4d72c5578114 Mon Sep 17 00:00:00 2001 From: Matthew Olker Date: Mon, 10 Jun 2024 10:29:10 -0400 Subject: [PATCH] fix local voucher test --- src/ui/egg-gacha-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/egg-gacha-ui-handler.ts b/src/ui/egg-gacha-ui-handler.ts index 5b5652f2fc0..e8ef0dd2d88 100644 --- a/src/ui/egg-gacha-ui-handler.ts +++ b/src/ui/egg-gacha-ui-handler.ts @@ -522,7 +522,7 @@ export default class EggGachaUiHandler extends MessageUiHandler { } consumeVouchers(voucherType: VoucherType, count: integer): void { - this.scene.gameData.voucherCounts[voucherType] = Math.max(this.scene.gameData.voucherCounts[voucherType] - 0, 0); + this.scene.gameData.voucherCounts[voucherType] = Math.max(this.scene.gameData.voucherCounts[voucherType] - count, 0); this.updateVoucherCounts(); }