From a9743c61694d5728ce299e2a75f892c1d39e3385 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 8 Feb 2023 15:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=89=8D=E7=AB=AF=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=8E=B7=E5=BE=97=E8=8B=B1=E9=9B=84=E5=88=86=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/model_hero.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index 454aacf1a..4477ae434 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -830,6 +830,12 @@ func (this *ModelHero) createHero(session comm.IUserSession, heroCfgId string, c if obj.HeroID == heroCfgId { hero = obj bFirst = false + atno = append(atno, &pb.UserAtno{ // 有英雄的时候 数量给0 + A: "hero", + T: hero.HeroID, + N: 0, + O: hero.Id, + }) break } }