From 51731fbafb2b9bbca64f13dd1f47c80a42935368 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 26 Sep 2022 20:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E8=80=97=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/api_resonance.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/hero/api_resonance.go b/modules/hero/api_resonance.go index 7ed0152f8..9fba7fe8f 100644 --- a/modules/hero/api_resonance.go +++ b/modules/hero/api_resonance.go @@ -83,6 +83,13 @@ func (this *apiComp) Resonance(session comm.IUserSession, req *pb.HeroResonanceR if code != pb.ErrorCode_Success { return } + + for k, _ := range szCostHero { + if k == _hero.Id { + _hero.SameCount = _costMaphero[k].SameCount + break + } + } if _hero.SameCount > 1 { _hero.SameCount -= 1 newHero := this.module.modelHero.CloneNewHero(_hero)