From c00990de8c39f801cb6e89a260bcfa597101e791 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 26 May 2023 16:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Rtype123?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/rtask/verifyHandle.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/rtask/verifyHandle.go b/modules/rtask/verifyHandle.go index b8b5e92e4..9a6f34291 100644 --- a/modules/rtask/verifyHandle.go +++ b/modules/rtask/verifyHandle.go @@ -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++ } }