diff --git a/assets/Game/Scripts/SlotBar.ts b/assets/Game/Scripts/SlotBar.ts index 01eb181..3ee289c 100644 --- a/assets/Game/Scripts/SlotBar.ts +++ b/assets/Game/Scripts/SlotBar.ts @@ -256,6 +256,10 @@ export class SlotBar extends Component { this.freeSpinBetLabel.string = gold2cash(bet); } + getdisplayBet() { + return this.displayBet + } + getBet(): number { return this.curBet; } diff --git a/assets/Game/Scripts/SlotScene.ts b/assets/Game/Scripts/SlotScene.ts index 7d5be2d..d25ad46 100644 --- a/assets/Game/Scripts/SlotScene.ts +++ b/assets/Game/Scripts/SlotScene.ts @@ -220,7 +220,7 @@ export class SlotScene extends Component { this.slotBar.setWin(0); } - if (this.slotBar.getBalance() < this.slotBar.getBet() && !this.isFreeSpin && !this.spinInfo.Frb.Ongoing) { + if (this.slotBar.getBalance() < (buyType == 1 ? this.slotBar.getBet() * this.gameInfo.BuyMul : (this.isDoubleWin ? this.slotBar.getdisplayBet() : this.slotBar.getBet())) && !this.isFreeSpin && !this.spinInfo.Frb.Ongoing) { //余额不足不经过服务器,在客户端拦截 this.showErrorTip(2, ""); this.handleErrSpin();