diff --git a/modules/gm/module.go b/modules/gm/module.go index 6f214a319..06b5ed495 100644 --- a/modules/gm/module.go +++ b/modules/gm/module.go @@ -331,12 +331,13 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er ) data := this.configure.GetHeroConfigData() for _, v := range data { - res = append(res, &cfg.Gameatn{ - A: "hero", - T: v.Hid, - N: 1, - }) - + if v.Handbook != -1 { + res = append(res, &cfg.Gameatn{ + A: "hero", + T: v.Hid, + N: 1, + }) + } } errdata = this.DispenseRes(session, res, true) if errdata != nil {