【战斗】修复技能效果修改导致被动技能报错的问题
parent
52fbe638f6
commit
c90e209fd6
|
|
@ -54,8 +54,8 @@ local passivityList = {
|
||||||
local OnSkillCast = function(skill)
|
local OnSkillCast = function(skill)
|
||||||
BattleUtil.RandomAction(f1, function ()
|
BattleUtil.RandomAction(f1, function ()
|
||||||
local duration = 0
|
local duration = 0
|
||||||
for i=1, skill.effectCaster.effectList.size do
|
for i=1, #skill.effectCaster.effectList do
|
||||||
duration = max(duration, skill.effectCaster.effectList.buffer[i].duration)
|
duration = max(duration, skill.effectCaster.effectList[i].duration)
|
||||||
end
|
end
|
||||||
role:AddPropertyTransfer(BattlePropList[pro1], f2, BattlePropList[pro2], 2, duration + BattleLogic.GameDeltaTime * 2)
|
role:AddPropertyTransfer(BattlePropList[pro1], f2, BattlePropList[pro2], 2, duration + BattleLogic.GameDeltaTime * 2)
|
||||||
end)
|
end)
|
||||||
|
|
@ -3554,7 +3554,7 @@ local passivityList = {
|
||||||
local i1 = args[1]
|
local i1 = args[1]
|
||||||
|
|
||||||
local onSkillCastEnd = function(skill)
|
local onSkillCastEnd = function(skill)
|
||||||
local effectGroup = skill.effectCaster.effectList.buffer[1]
|
local effectGroup = skill.effectCaster.effectList[1]
|
||||||
local chooseId = effectGroup.chooseId
|
local chooseId = effectGroup.chooseId
|
||||||
local chooseLimit = floor(chooseId / 10000) % 10
|
local chooseLimit = floor(chooseId / 10000) % 10
|
||||||
if chooseLimit == 3 then -- 打纵列
|
if chooseLimit == 3 then -- 打纵列
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue