diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleDefine.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleDefine.lua index b947cec061..a7007d49e6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleDefine.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleDefine.lua @@ -242,6 +242,7 @@ RoleDataName = { InitRage = indexAdd(), --初始怒气值 KongBonus = indexAdd(), --时空系伤害加成 KongReduce = indexAdd(), --时空系伤害减免 + PlayerAddSkill = indexAdd(),--主角连击 } -- 战斗表属性id对应战斗中属性数据 diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/SkillManager.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/SkillManager.lua index d060533337..78d4ad856d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/SkillManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/SkillManager.lua @@ -46,6 +46,22 @@ function this.AddMonsterSkill(skill) "pos", skill.owner.position, "type", BattleSkillType.Monster ) + --判断主角连击属性 + local addPro=skill.owner:GetRoleData(RoleDataName.Speed) + if skill.owner.position==100 then + BattleUtil.RandomAction(addPro,function() + if skill.type == BattleSkillType.Monster then + local addSkill=skill + table.insert(this.MonsterSkillList, addSkill) + BattleLogManager.Log( + "Add Monster continue Skill", + "camp", skill.owner.camp, + "pos", skill.owner.position, + "type", BattleSkillType.Monster + ) + end + end) + end return skill end @@ -211,7 +227,7 @@ function this.Update() return end - + if this.MonsterSkillList and #this.MonsterSkillList > 0 then local skill = this.MonsterSkillList[1] table.remove(this.MonsterSkillList, 1)