|
|
@@ -504,6 +504,29 @@ local function isCanRevive(obj, attacker , data)
|
|
|
return true
|
|
|
end
|
|
|
|
|
|
+-- 连击检测
|
|
|
+local function comboCheck(targetObj, side)
|
|
|
+ if Skill.GroupSkillCnt ~= 1 then return end--技能包首次技能攻击才能触发
|
|
|
+
|
|
|
+ for _,pos in ipairs(CombatDefine.SIDE2POS[side]) do
|
|
|
+ local obj = CombatImpl.objList[pos]
|
|
|
+ if obj and obj.beSkillList then
|
|
|
+ for _, skillInfo in ipairs(obj.beSkillList[BESKILL_TYPE72] or {}) do
|
|
|
+ local skillCfg = Skill.GetSkillConfig(skillInfo[1])
|
|
|
+ if skillCfg and skillCfg.cmd == "comboProb" then
|
|
|
+ local comboProbVal = skillCfg.beSkillArgs[1] or 0
|
|
|
+ local randval = math.random(0, 10000)
|
|
|
+ if comboProbVal >= randval then
|
|
|
+ CombatImpl.comboList[#CombatImpl.comboList + 1] = {targetObj, 1}
|
|
|
+ end
|
|
|
+ end
|
|
|
+ end
|
|
|
+ end
|
|
|
+ end
|
|
|
+end
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
function onSkillID(obj,skillID)
|
|
|
--local skillConfig = SkillExcel[skillID]
|
|
|
local skillConfig = Skill.GetSkillConfig(skillID)
|
|
|
@@ -945,8 +968,12 @@ function onHit(attacker,targets,skillID)
|
|
|
end
|
|
|
end
|
|
|
end
|
|
|
+
|
|
|
+ comboCheck(attacker, side)
|
|
|
end
|
|
|
|
|
|
+
|
|
|
+
|
|
|
function onHp(obj, hurt, attackPos)
|
|
|
if obj.beSkillList[BESKILL_TYPE3] then
|
|
|
for _,v in ipairs(obj.beSkillList[BESKILL_TYPE3]) do
|