From ec1f5be13184573cf49f9c34b3d025e27362d53d Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Mon, 10 Jan 2022 14:22:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=98=E6=96=97]=3D=3D=3D=3D=3D=3D=E8=A2=AB?= =?UTF-8?q?=E5=8A=A8414=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/Logic/Base/Passivity.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua index 492a258d8e..265f0d4c3b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -10670,12 +10670,14 @@ local passivityList = { if skill and not skill.isTriggerJudge and judge==1 then return end + if skill and skill.type~= BattleSkillType.Special then + return + end local arr=RoleManager.Query(function(v) return v.camp~=role.camp end) if arr==nil or #arr==0 then return end for i = 1, t1 do - local index = Random.RangeInt(1, #arr) BattleUtil.CalRage(role,arr[index],num,ct) end