This commit is contained in:
meixiongfeng 2023-09-08 17:49:57 +08:00
parent d97cc253fa
commit 1b9c52d6c6

View File

@ -45,10 +45,11 @@ func (this *ModuleRobot_Viking) DoPipeline(robot IRobot) (err error) {
errdata *pb.ErrorData
)
// 获取爬塔信息
if _, errdata := robot.SendMessage("viking", "getlist", &pb.VikingGetListReq{}); errdata != nil {
if resp, errdata = robot.SendMessage("viking", "getlist", &pb.VikingGetListReq{}); errdata != nil {
err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message))
return
}
this.viking = resp.(*pb.VikingGetListResp).Data
heromodule := robot.GetModule(comm.ModuleHero).(*ModuleRobot_Hero)
heros := heromodule.getbattlehero()
var bossid int32