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 { if ml, y := m.(comm.IHero); y {
heroList := ml.GetHeroList(uid)
for _, heroId := range ml.QueryHeroTelnetByCount(uid, int(cfg.Data2)) { for _, heroId := range ml.QueryHeroTelnetByCount(uid, int(cfg.Data2)) {
hero, ec := ml.GetHeroByObjID(uid, heroId) for _, hero := range heroList {
if ec == pb.ErrorCode_Success { if heroId == hero.Id && hero.Star == cfg.Data3 {
if hero.Star == cfg.Data3 {
count++ count++
} }
} }