战斗开始时更新英雄数据
This commit is contained in:
parent
c9b32741cb
commit
55a7ec4b82
@ -669,6 +669,7 @@ function BattleBaseData:initHeroData(formation)
|
||||
if formation then
|
||||
local skillCfg = ConfigManager:getConfig("skill")
|
||||
for matchType, heroEntity in pairs(formation) do
|
||||
heroEntity:getAllAttr()
|
||||
local skillId = heroEntity:getBaseSkill()
|
||||
local hp = heroEntity:getAttrValue(ATTR_NAME.HP) // DEFAULT_FACTOR
|
||||
local unitData = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user