获取图鉴不为-1的英雄

This commit is contained in:
meixiongfeng 2023-07-04 16:24:22 +08:00
parent 708287fc54
commit cca511a2f0

View File

@ -331,12 +331,13 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
) )
data := this.configure.GetHeroConfigData() data := this.configure.GetHeroConfigData()
for _, v := range data { for _, v := range data {
if v.Handbook != -1 {
res = append(res, &cfg.Gameatn{ res = append(res, &cfg.Gameatn{
A: "hero", A: "hero",
T: v.Hid, T: v.Hid,
N: 1, N: 1,
}) })
}
} }
errdata = this.DispenseRes(session, res, true) errdata = this.DispenseRes(session, res, true)
if errdata != nil { if errdata != nil {