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 {