diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua index 02e63f1cb1..87d6da4b52 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -3465,12 +3465,12 @@ local passivityList = { end local function onSkillCast(skill) - if skill.type == BattleSkillType.Special then + if skill.type == BattleSkillType.Special or skill.type==BattleSkillType.DeadSkill then role.Event:AddEvent(BattleEventName.PassiveTreatingFactor, onPassiveTreatingFactor) end end local function onSkillCastEnd(skill) - if skill.type == BattleSkillType.Special then + if skill.type == BattleSkillType.Special or skill.type==BattleSkillType.DeadSkill then role.Event:RemoveEvent(BattleEventName.PassiveTreatingFactor, onPassiveTreatingFactor) -- 对每个目标附加减伤盾 local targets = skill:GetDirectTargets() @@ -6371,6 +6371,22 @@ local passivityList = { BattleLogic.Event:AddEvent(BattleEventName.BattleRoleDead, OnDead) end, + -- 战斗第[a]回合,改变[b] 自身属性[c] [d]%,持续[e]回合 + -- a[int] b[int 改变类型] c[int 属性id] d[float/int] d[int] + [304] = function(role, args,id,judge) + local i1 = args[1] + local ct = args[2] + local p1 = args[3] + local v1 = args[4] + local round = args[5] + + BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, function(curRound) + -- 第i1回合开始 + if curRound == i1 then + role:AddBuff(Buff.Create(role, BuffName.PropertyChange,round, BattlePropList[p1],v1, ct)) + end + end) + end, } return passivityList \ No newline at end of file