战斗报错
This commit is contained in:
parent
ef9d0bdc9b
commit
229441bbaf
@ -439,7 +439,7 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
|
||||
if eventConf.EventType == EventType28 { // 必须是战斗类型才可以触发
|
||||
var job int32
|
||||
for _, v := range req.Report.Info.Redflist[0].Team {
|
||||
if h, err := this.module.ModuleTools.GetHeroConfig(v.HeroID); err != nil {
|
||||
if h, err := this.module.ModuleTools.GetHeroConfig(v.HeroID); err == nil {
|
||||
if job == 0 {
|
||||
job = h.Job
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user