普攻次数

This commit is contained in:
chenxi 2023-04-24 17:37:31 +08:00
parent c42a3dd0b1
commit 391f7b7925
2 changed files with 3 additions and 2 deletions

View File

@ -542,6 +542,7 @@ function BattleData:addMonster(monsterId, newTeam)
modelId = monsterInfo.model_id,
matchType = 0,
normalSkills = monsterInfo.hurt_skill,
normalSkillCount = monsterInfo.atk_times or 0,
activeSkills = monsterInfo.skill,
passiveSkills = monsterInfo.passive_skill,
assistingSkill = nil,

View File

@ -22,9 +22,9 @@ function BattleUnitEntity:initSkill()
local skill = BattleSkillEntity:create(v, GConst.BattleConst.SKILL_TYPE_NORMAL, self)
table.insert(self.normalSkills, skill)
end
self.normalSkillCount = #self.normalSkills
self.normalSkillCount = self.unitData.normalSkillCount or #self.normalSkills
else
self.normalSkillCount = 0
self.normalSkillCount = self.unitData.normalSkillCount or 0
end
self.normalSkill = nil
if self.unitData.assistingSkill then