抽出5星英雄后A次抽奖内不会再抽到5星英雄

This commit is contained in:
meixiongfeng 2023-06-26 21:28:05 +08:00
parent 5053fe88ae
commit 4dfdad08a9

View File

@ -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
}
}
}
// 通过卡池获得最终的英雄