From 3a4d252804d9f482f7741b70c39edb37e995be37 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 4 Nov 2022 16:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=80=AA=E7=89=A9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BC=98=E5=8C=96=E6=8A=80=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/battle/modelBattle.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/battle/modelBattle.go b/modules/battle/modelBattle.go index 48cf76a3f..ee8a61c7d 100644 --- a/modules/battle/modelBattle.go +++ b/modules/battle/modelBattle.go @@ -296,6 +296,16 @@ func (this *modelBattleComp) createMasterRoles(wheel int, fid int32) (captain in NormalSkill: hero.NormalSkill, Property: hero.Property, } + for i, v := range roles[i].NormalSkill { + if i == 0 { + v.SkillLv = monst.Skill1 + } else if i == 1 { + v.SkillLv = monst.Skill2 + } else { + v.SkillLv = monst.Skill3 + } + } + if monst.Equip4 != 0 { if suit, err := this.module.configure.Getequipsuit(monst.Equip4); err != nil { code = pb.ErrorCode_ConfigNoFound