普攻次数
This commit is contained in:
parent
c42a3dd0b1
commit
391f7b7925
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user