From 8f9f187086572cbd6e02791142749936f39cd451 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 23 Nov 2022 20:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=8D=81=E8=BF=9E=E4=B8=8D?= =?UTF-8?q?=E9=A2=9D=E5=A4=96=E8=AE=A1=E7=AE=97=E6=A6=82=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/api_drawCard.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/hero/api_drawCard.go b/modules/hero/api_drawCard.go index d32421668..3279500eb 100644 --- a/modules/hero/api_drawCard.go +++ b/modules/hero/api_drawCard.go @@ -200,6 +200,9 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq if int32(len(v)) > randomIndex { if star == 5 { // 抽出5星英雄后A次抽奖内不会再抽到5星英雄(普通卡池+阵营卡池) curDrawCount := drawCount - req.DrawCount + if curDrawCount <= 10 { // 首次十连不计算 + continue + } newID := this.module.ContinuousRestriction(session.GetUserId(), v[randomIndex].Id, curDrawCount+int32(index), strPool[index]) szCards = append(szCards, newID) continue