BattleRole tid 赋值问题

This commit is contained in:
meixiongfeng 2023-07-28 20:06:47 +08:00
parent 0608014645
commit 9a2a02b9dc

View File

@ -74,6 +74,7 @@ func (this *apiComp) EnterLevel(session comm.IUserSession, req *pb.StonehengeEnt
}
if len(roles) == len(req.Hid) {
for i, v := range req.Hid {
roles[i].Tid = 100 + int32(i)
stone.Hero[v] = roles[i]
}
}