【战斗】修复部分被动技能报错
parent
148b068c79
commit
02a57e692c
|
@ -54,8 +54,8 @@ local passivityList = {
|
|||
local OnSkillCast = function(skill)
|
||||
BattleUtil.RandomAction(f1, function ()
|
||||
local duration = 0
|
||||
for i=1, skill.effectList.size do
|
||||
duration = max(duration, skill.effectList.buffer[i].duration)
|
||||
for i=1, skill.effectCaster.effectList.size do
|
||||
duration = max(duration, skill.effectCaster.effectList.buffer[i].duration)
|
||||
end
|
||||
role:AddPropertyTransfer(BattlePropList[pro1], f2, BattlePropList[pro2], 2, duration + BattleLogic.GameDeltaTime * 2)
|
||||
end)
|
||||
|
@ -3554,7 +3554,7 @@ local passivityList = {
|
|||
local i1 = args[1]
|
||||
|
||||
local onSkillCastEnd = function(skill)
|
||||
local effectGroup = skill.effectList.buffer[1]
|
||||
local effectGroup = skill.effectCaster.effectList.buffer[1]
|
||||
local chooseId = effectGroup.chooseId
|
||||
local chooseLimit = floor(chooseId / 10000) % 10
|
||||
if chooseLimit == 3 then -- 打纵列
|
||||
|
|
|
@ -23,7 +23,6 @@ function MSkill:Init(owner, group, index, skillData)
|
|||
|
||||
self.curRoundCount = 0
|
||||
self.maxRoundCount = self.skillData.maxRoundCount
|
||||
LogError("最大释放次数"..self.maxCastCount.."最大回合次数"..self.maxRoundCount)
|
||||
-- 将技能加入触发检测
|
||||
MTrigger.AddSkill(self.skillData.triggerId, self.skillData.triggerCondition, self)
|
||||
|
||||
|
|
Loading…
Reference in New Issue