修改Rtype123

This commit is contained in:
wh_zcy 2023-05-26 16:53:44 +08:00
parent 61250eaaf2
commit c00990de8c

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++
} }
} }