From fdd878da08978a7266ace1310879bf570e1b89a6 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 21 Nov 2022 18:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E7=BB=8F=E9=AA=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/model_hero.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index ae27fda84..714544571 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -520,7 +520,7 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex curExp = 0 break } - + maxExp = _data.Heroexp if maxLv <= curLv && curExp >= maxExp { // 设置最大经验和等级 curLv = maxLv curExp = maxExp