TCX_LongZhu
parent
838a42cfad
commit
f0bde7e48c
|
@ -311,18 +311,20 @@ end
|
|||
function this.PlayerSkillAdapter2(MSkillId)
|
||||
local skill = {}
|
||||
local monsterSkill = playerSkill[tonumber(MSkillId)]
|
||||
for index, skillId in ipairs(monsterSkill.SkillIDList) do
|
||||
skill[index] = {}
|
||||
skill[index].effect = this.GetSkillData(tonumber(skillId))
|
||||
skill[index].triggerId = monsterSkill.ReleasePoint[index]
|
||||
skill[index].triggerCondition = { 0 }
|
||||
if monsterSkill.ReleaseLimit and monsterSkill.ReleaseLimit[index] then
|
||||
for k, v in ipairs(monsterSkill.ReleaseLimit[index]) do
|
||||
skill[index].triggerCondition[k] = v
|
||||
if monsterSkill then
|
||||
for index, skillId in ipairs(monsterSkill.SkillIDList) do
|
||||
skill[index] = {}
|
||||
skill[index].effect = this.GetSkillData(tonumber(skillId))
|
||||
skill[index].triggerId = monsterSkill.ReleasePoint[index]
|
||||
skill[index].triggerCondition = { 0 }
|
||||
if monsterSkill.ReleaseLimit and monsterSkill.ReleaseLimit[index] then
|
||||
for k, v in ipairs(monsterSkill.ReleaseLimit[index]) do
|
||||
skill[index].triggerCondition[k] = v
|
||||
end
|
||||
end
|
||||
skill[index].maxCount = monsterSkill.WarEffectCount[index] or 999
|
||||
skill[index].maxRoundCount = monsterSkill.TurnEffectCount[index] or 999
|
||||
end
|
||||
skill[index].maxCount = monsterSkill.WarEffectCount[index] or 999
|
||||
skill[index].maxRoundCount = monsterSkill.TurnEffectCount[index] or 999
|
||||
end
|
||||
return skill
|
||||
end
|
||||
|
@ -877,7 +879,9 @@ function this.GetMonsterDataFromGroup(gId, camp)
|
|||
local id = monster[1]
|
||||
local star = monster[2]
|
||||
local level = monster[3]
|
||||
|
||||
if star == nil then
|
||||
break
|
||||
end
|
||||
local mUnit = {
|
||||
unitId = id,
|
||||
position = i,
|
||||
|
|
Loading…
Reference in New Issue