【战斗】======被动283修改

dev_chengFeng
wangzhenxing 2021-12-29 17:59:48 +08:00
parent b46a62c25a
commit db071514f9
1 changed files with 6 additions and 6 deletions

View File

@ -9519,15 +9519,11 @@ local passivityList = {
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange,onRoundChange,nil,nil,role) BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange,onRoundChange,nil,nil,role)
end, end,
--目标存在御甲,追击的普攻对御甲额外造成[a]倍伤害,不存在御甲,追击的普攻额外造成目标[b][c]%的伤害 --目标存在御甲,追击的普攻对御甲额外造成[a]倍伤害,不存在御甲,追击的普攻额外造成目标[b][c]%的伤害
--【御甲不足以抵扣a倍伤害 对神将造成血量伤害=([d]属性*[e]-御甲值)/[f]】 --a[int],b[int],c[float]
--a[int],b[int],c[float],d[int],e[int],f[int]
[383]=function(role, args,id,judge) [383]=function(role, args,id,judge)
local d1 = args[1] local d1 = args[1]
local p1 = args[2] local p1 = args[2]
local v1 = args[3] local v1 = args[3]
local p2 = args[4]
local v2 = args[5]
local d2 = args[6]
local passiveDmg=function(func, defRole, damage, skill, dotType, bCrit,damageType, dotType,isDirect) local passiveDmg=function(func, defRole, damage, skill, dotType, bCrit,damageType, dotType,isDirect)
if not skill then if not skill then
return return
@ -9548,7 +9544,7 @@ local passivityList = {
else else
local jia=defRole.bloodShield.bloodValue local jia=defRole.bloodShield.bloodValue
if damage*d1>jia then if damage*d1>jia then
local aaa=(role:GetRoleData(BattlePropList[p2])*v2-jia)/d2 local aaa=damage-(jia/d1)+jia-damage
func(-floor(aaa)) func(-floor(aaa))
else else
func(-floor(damage*(d1-1))) func(-floor(damage*(d1-1)))
@ -10658,6 +10654,10 @@ local passivityList = {
end end
BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, onBattleRoundChange) BattleLogic.Event:AddEvent(BattleEventName.BattleRoundChange, onBattleRoundChange)
end, end,
-- 每有一个[a]阵营神将改变[b]%[c]属性 改变类型[d](战前全体生效用)
--a[int],b[float],c[属性],d[int]
[413] =function(role,args,id,judge)
end,
} }