战斗开始时更新英雄数据

This commit is contained in:
xiekaidong 2023-07-05 18:24:33 +08:00
parent c9b32741cb
commit 55a7ec4b82

View File

@ -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 = {