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 属性