From b4cb94eb9008c7c9c80725aac8bc8f9a670fae1a Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Fri, 7 Nov 2025 15:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=98=E6=96=97=E5=8A=9Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/hero/hero_entity.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/app/userdata/hero/hero_entity.lua b/lua/app/userdata/hero/hero_entity.lua index a7992a86..509a15fd 100644 --- a/lua/app/userdata/hero/hero_entity.lua +++ b/lua/app/userdata/hero/hero_entity.lua @@ -18,6 +18,9 @@ function HeroEntity:ctor(cfgId, lv, skin, star) self.allAttr = {} self.attrDirty = true self.attrBaseDirty = true + + -- 基础属性里有全局属性 要优先初始化 + self:_getAllBaseAttr() end -- region 属性