From 844ea3189885299c713db40fb8f4509c001ac3ae Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 17 Jul 2023 14:28:52 +0800 Subject: [PATCH] =?UTF-8?q?*=20#27921=20=E7=BC=BA=E9=99=B7=20=E3=80=90?= =?UTF-8?q?=E6=A2=A6=E5=B7=A5=E5=9C=BA=E7=B3=BB=E7=BB=9F=E3=80=91=20=20?= =?UTF-8?q?=E3=80=90=E8=A7=89=E9=86=92=E3=80=91=E5=95=8A=E5=95=8A=E4=B8=89?= =?UTF-8?q?=E9=98=B6=E6=AE=B5=E8=A7=89=E9=86=92=E6=B2=A1=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8A=A0=E6=88=90=20=E7=89=88=E7=BD=B2=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/model_hero.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index ad900d9f9..9b63fe75c 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -204,10 +204,11 @@ func (this *ModelHero) resetJuexingProperty(hero *pb.DBHero) { continue } key := awakenData.Phasebonus[0] - value, err := strconv.Atoi(awakenData.Phasebonus[1]) + _, err := strconv.Atoi(awakenData.Phasebonus[0]) // 950 if err != nil { continue } + value, _ := strconv.Atoi(awakenData.Phasebonus[1]) switch key { case comm.Hp: hero.JuexProperty[comm.Hp] += int32(value)