[战斗]===========被动196 200 188修改
parent
688c8081fc
commit
e584db1eaa
|
@ -3961,8 +3961,8 @@ local passivityList = {
|
|||
table.insert(cl, {v, ct})
|
||||
end
|
||||
end
|
||||
role.Event:DispatchEvent(BattleEventName.PassiveDamageShare, _CallBack,skill)
|
||||
atkRole.Event:DispatchEvent(BattleEventName.PassiveDamageBeShare, _CallBack,skill)
|
||||
role.Event:DispatchEvent(BattleEventName.PassiveDamageShare, _CallBack,skill,atkRole)
|
||||
atkRole.Event:DispatchEvent(BattleEventName.PassiveDamageBeShare, _CallBack,skill,role)
|
||||
ff = BattleUtil.CountChangeList(ff, cl)
|
||||
|
||||
-- 计算分摊伤害
|
||||
|
@ -4108,7 +4108,6 @@ local passivityList = {
|
|||
if maxNum and maxNum > 0 then
|
||||
cf = cf/maxNum
|
||||
end
|
||||
|
||||
local targets = skill:GetDirectTargets()
|
||||
if not targets or #targets == 0 then return end
|
||||
|
||||
|
@ -4169,14 +4168,17 @@ local passivityList = {
|
|||
end)
|
||||
end,
|
||||
|
||||
-- 对敌方造成伤害如被分摊其分摊比降低[a]%
|
||||
-- a[float]
|
||||
-- 对敌方造成伤害如被分摊其分摊比降低[a]%,判断类型[b](b:1 技能 2 普攻 3 所有 4:燃烧目标 )
|
||||
-- a[float],b[int]
|
||||
[196] = function(role, args,id,judge)
|
||||
local f1 = args[1]
|
||||
local type = args[2]
|
||||
local onDamageBeShare = function(func,skill)
|
||||
local onDamageBeShare = function(func,skill,target)
|
||||
if skill and not skill.isTriggerJudge and judge==1 then
|
||||
return
|
||||
end
|
||||
if type==4 and not BattleLogic.BuffMgr:HasBuff(target, BuffName.DOT, function (buff) return buff.type== BuffName.DOT and buff.damageType==1 end,role,1) then
|
||||
return
|
||||
end
|
||||
--普攻不会被降低分摊 2020/11/17 wangzhenxing lihaiyang
|
||||
if type==1 and skill and skill.type~=BattleSkillType.Normal then
|
||||
|
@ -4288,8 +4290,8 @@ local passivityList = {
|
|||
table.insert(cl, {v, ct})
|
||||
end
|
||||
end
|
||||
role.Event:DispatchEvent(BattleEventName.PassiveDamageShare, _CallBack,skill)
|
||||
atkRole.Event:DispatchEvent(BattleEventName.PassiveDamageBeShare, _CallBack,skill)
|
||||
role.Event:DispatchEvent(BattleEventName.PassiveDamageShare, _CallBack,skill,atkRole)
|
||||
atkRole.Event:DispatchEvent(BattleEventName.PassiveDamageBeShare, _CallBack,skill,defRole)
|
||||
ff = BattleUtil.CountChangeList(ff, cl)
|
||||
local shareDamage = floor(BattleUtil.ErrorCorrection(damage * f1*ff))
|
||||
-- 被攻击武将自身伤害
|
||||
|
|
Loading…
Reference in New Issue