From 130a7d654898d83c088cadec07c456f37a1c07dd Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Fri, 5 Mar 2021 18:02:31 +0900 Subject: [PATCH] =?UTF-8?q?[=E6=88=98=E6=96=97]=3D=3D=3D=3D=3D=3D=3D=3D=3D?= =?UTF-8?q?=3D=3D=3D=3D272=E8=A2=AB=E5=8A=A8=E4=BF=AE=E6=94=B9=20=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E9=85=8D=E7=BD=AE=E5=9B=9E=E5=90=88=E6=95=B0=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E8=AE=A1=E7=AE=97=E6=A6=82=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/Logic/Base/Passivity.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua index e2bc234648..7264ee7db4 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Passivity.lua @@ -5844,16 +5844,19 @@ local passivityList = { end role.Event:AddEvent(BattleEventName.PassiveBeDamaging, onPassiveBeDamaging) end, - -- 战斗第回合概率无敌,回合数每增加1,概率是之前的[a] - -- a[float] + -- 战斗第[a]回合开始概率无敌,回合数每增加1,概率是之前的[b] + -- a[int] b[float] [272] = function(role, args) local i1 = args[1] + local p1 =args[2] local buff=nil local isTrigger=true BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, function(curRound) local pro=0 - if curRound>0 then - pro=i1^(curRound-1) + if curRound>i1 then + pro=p1^(curRound-i1) + else + pro=1 end if isTrigger then local isAdd=BattleUtil.RandomAction(pro, function ()