TCX_LongZhu
DESKTOP-RH64908\Administrator 2024-12-23 18:51:04 +08:00
parent 838a42cfad
commit f0bde7e48c
1 changed files with 15 additions and 11 deletions

View File

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