英雄血量继承
This commit is contained in:
parent
91f8df9c0c
commit
9c1ac0abee
@ -101,7 +101,10 @@ func (this *apiComp) BattleOver(session comm.IUserSession, req *pb.StonehengeBat
|
||||
}
|
||||
}
|
||||
// 战斗结束更新英雄信息
|
||||
for _, v := range req.Report.Alive {
|
||||
for _, v := range stone.Hero { // 先重置血量
|
||||
v.Currhp = 0
|
||||
}
|
||||
for _, v := range req.Report.Alive { // 注意 阵亡英雄不在存货列表内
|
||||
stone.Hero[v.HeroID] = v
|
||||
}
|
||||
update["hero"] = stone.Hero
|
||||
|
Loading…
Reference in New Issue
Block a user