From 4dfdad08a94e7cc1661efa957d17e4e6f521bb51 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 26 Jun 2023 21:28:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=87=BA5=E6=98=9F=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E5=90=8EA=E6=AC=A1=E6=8A=BD=E5=A5=96=E5=86=85=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E5=86=8D=E6=8A=BD=E5=88=B05=E6=98=9F=E8=8B=B1?= =?UTF-8?q?=E9=9B=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/api_drawCard.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/hero/api_drawCard.go b/modules/hero/api_drawCard.go index a91e2fecb..c1fa9f783 100644 --- a/modules/hero/api_drawCard.go +++ b/modules/hero/api_drawCard.go @@ -173,6 +173,14 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq } } //抽出5星英雄后A次抽奖内不会再抽到5星英雄(普通卡池+阵营卡池) + if heroRecord.Race[req.DrawType] >= cfgGlobal.DrawCardContinuousRestrictionStar5 && Is5Star { + if IsBaodiPool { + strPool[len(strPool)-1] = drawConf.P3pool + } else { + strPool[len(strPool)-1] = drawConf.N3pool + } + Is5Star = false + } } } // 通过卡池获得最终的英雄