普攻次数
This commit is contained in:
parent
c42a3dd0b1
commit
391f7b7925
@ -542,6 +542,7 @@ function BattleData:addMonster(monsterId, newTeam)
|
|||||||
modelId = monsterInfo.model_id,
|
modelId = monsterInfo.model_id,
|
||||||
matchType = 0,
|
matchType = 0,
|
||||||
normalSkills = monsterInfo.hurt_skill,
|
normalSkills = monsterInfo.hurt_skill,
|
||||||
|
normalSkillCount = monsterInfo.atk_times or 0,
|
||||||
activeSkills = monsterInfo.skill,
|
activeSkills = monsterInfo.skill,
|
||||||
passiveSkills = monsterInfo.passive_skill,
|
passiveSkills = monsterInfo.passive_skill,
|
||||||
assistingSkill = nil,
|
assistingSkill = nil,
|
||||||
|
|||||||
@ -22,9 +22,9 @@ function BattleUnitEntity:initSkill()
|
|||||||
local skill = BattleSkillEntity:create(v, GConst.BattleConst.SKILL_TYPE_NORMAL, self)
|
local skill = BattleSkillEntity:create(v, GConst.BattleConst.SKILL_TYPE_NORMAL, self)
|
||||||
table.insert(self.normalSkills, skill)
|
table.insert(self.normalSkills, skill)
|
||||||
end
|
end
|
||||||
self.normalSkillCount = #self.normalSkills
|
self.normalSkillCount = self.unitData.normalSkillCount or #self.normalSkills
|
||||||
else
|
else
|
||||||
self.normalSkillCount = 0
|
self.normalSkillCount = self.unitData.normalSkillCount or 0
|
||||||
end
|
end
|
||||||
self.normalSkill = nil
|
self.normalSkill = nil
|
||||||
if self.unitData.assistingSkill then
|
if self.unitData.assistingSkill then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user