This commit is contained in:
meixiongfeng 2023-05-26 17:02:43 +08:00
commit fa1bb31c2f

View File

@ -491,10 +491,10 @@ func (this *ModelRtask) verifyRtype123(uid string, cfg *cfg.GameRdtaskCondiData,
}
if ml, y := m.(comm.IHero); y {
heroList := ml.GetHeroList(uid)
for _, heroId := range ml.QueryHeroTelnetByCount(uid, int(cfg.Data2)) {
hero, ec := ml.GetHeroByObjID(uid, heroId)
if ec == pb.ErrorCode_Success {
if hero.Star == cfg.Data3 {
for _, hero := range heroList {
if heroId == hero.Id && hero.Star == cfg.Data3 {
count++
}
}