From 33d0c7a2fd53789aec5e86c2cd05ecfc0eae7782 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Thu, 21 Jan 2021 20:31:41 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E3=80=91=3D=3D=3D?= =?UTF-8?q?=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=E5=A2=9E=E5=8A=A0304?= =?UTF-8?q?=E8=A2=AB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Battle/Logic/Base/Passivity.lua | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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