Revert "[战斗]=============272被动修改 根据配置回合数开始计算概率"

This reverts commit 130a7d6548.
dev_chengFeng
JieLing 2021-03-13 16:39:02 +08:00
parent 7a8de27f1c
commit 054d6cba54
1 changed files with 4 additions and 7 deletions

View File

@ -5845,19 +5845,16 @@ local passivityList = {
end
role.Event:AddEvent(BattleEventName.PassiveBeDamaging, onPassiveBeDamaging)
end,
-- 战斗第[a]回合开始概率无敌回合数每增加1概率是之前的[b]
-- a[int] b[float]
-- 战斗第回合概率无敌回合数每增加1概率是之前的[a]
-- a[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>i1 then
pro=p1^(curRound-i1)
else
pro=1
if curRound>0 then
pro=i1^(curRound-1)
end
if isTrigger then
local isAdd=BattleUtil.RandomAction(pro, function ()