TCX_LongZhu
parent
838a42cfad
commit
f0bde7e48c
|
|
@ -311,6 +311,7 @@ end
|
||||||
function this.PlayerSkillAdapter2(MSkillId)
|
function this.PlayerSkillAdapter2(MSkillId)
|
||||||
local skill = {}
|
local skill = {}
|
||||||
local monsterSkill = playerSkill[tonumber(MSkillId)]
|
local monsterSkill = playerSkill[tonumber(MSkillId)]
|
||||||
|
if monsterSkill then
|
||||||
for index, skillId in ipairs(monsterSkill.SkillIDList) do
|
for index, skillId in ipairs(monsterSkill.SkillIDList) do
|
||||||
skill[index] = {}
|
skill[index] = {}
|
||||||
skill[index].effect = this.GetSkillData(tonumber(skillId))
|
skill[index].effect = this.GetSkillData(tonumber(skillId))
|
||||||
|
|
@ -324,6 +325,7 @@ function this.PlayerSkillAdapter2(MSkillId)
|
||||||
skill[index].maxCount = monsterSkill.WarEffectCount[index] or 999
|
skill[index].maxCount = monsterSkill.WarEffectCount[index] or 999
|
||||||
skill[index].maxRoundCount = monsterSkill.TurnEffectCount[index] or 999
|
skill[index].maxRoundCount = monsterSkill.TurnEffectCount[index] or 999
|
||||||
end
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue