From 285e99acc42e81f5156528275d5ffc7cf1f192f4 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 31 Jul 2023 09:45:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=BA=95=E6=AC=A1=E6=95=B0=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/api_drawCard.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/hero/api_drawCard.go b/modules/hero/api_drawCard.go index 1da3acf8b..e842c6ddb 100644 --- a/modules/hero/api_drawCard.go +++ b/modules/hero/api_drawCard.go @@ -177,6 +177,8 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq for i := 1; i <= int(req.DrawCount); i++ { // 一张一张的抽 heroRecord.Race[req.DrawType] += 1 drawCount++ + heroRecord.Baodi5[req.DrawType]++ + heroRecord.Baodi4[req.DrawType]++ if v, ok := appointmap[drawCount]; ok { // 优先校验是否是指定抽 strPool = append(strPool, v) //找到了 continue @@ -237,8 +239,7 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq } continue } - heroRecord.Baodi5[req.DrawType]++ - heroRecord.Baodi4[req.DrawType]++ + if req.DrawCount == 10 { if star4Count >= cfgGlobal.Draw10Star4Max { // 10连抽最大4星数量 if IsBaodiPool {