【战斗】147,206被动修改回原来的效果
parent
6ce8000c0b
commit
53e473c325
|
|
@ -2752,23 +2752,16 @@ local passivityList = {
|
||||||
role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillCastEnd)
|
role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillCastEnd)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
-- 受到[a]攻击有[b]%概率使攻击者[c](每回合造成被击者自身20%攻击力的伤害)持续[d]回合
|
-- 受到攻击有[a]%概率使攻击者[b](每回合造成被击者自身20%攻击力的伤害)持续[c]回合
|
||||||
-- a[int 攻击类型] b[float]c[持续伤害状态]d[int] a:0 所有攻击 1:只限制技能伤害
|
-- a[float]b[持续伤害状态]c[int]
|
||||||
[147] = function(role, args)
|
[147] = function(role, args)
|
||||||
local type=args[1]
|
local f1 = args[1]
|
||||||
local f1 = args[2]
|
local dot = args[2]
|
||||||
local dot = args[3]
|
local i1 = args[3]
|
||||||
local i1 = args[4]
|
|
||||||
-- 技能后后
|
-- 技能后后
|
||||||
local onRoleBeHit = function(caster,damage, bCrit, finalDmg, damageType, skill)
|
local onRoleBeHit = function(caster)
|
||||||
--屏蔽相同阵营
|
|
||||||
if caster.camp==role.camp then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
--检测技能
|
|
||||||
if type==1 and (not skill or skill.type==BattleSkillType.Normal)then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
local attack = role:GetRoleData(RoleDataName.Attack)
|
local attack = role:GetRoleData(RoleDataName.Attack)
|
||||||
local damage = floor(BattleUtil.ErrorCorrection(attack * 0.2))
|
local damage = floor(BattleUtil.ErrorCorrection(attack * 0.2))
|
||||||
BattleUtil.RandomDot(f1, dot, role, caster, i1, 1, damage)
|
BattleUtil.RandomDot(f1, dot, role, caster, i1, 1, damage)
|
||||||
|
|
@ -4065,21 +4058,17 @@ local passivityList = {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--技能治疗系数[a]改变[b]% ,技能目标改变[c] [d]名(作用于主动技能效果103)
|
--技能治疗系数[a]改变[b]%(作用于主动技能效果103)
|
||||||
--a[改变类型]b[float] c[改变类型] d[int]
|
--a[改变类型]b[float]
|
||||||
[206] = function(role, args)
|
[206] = function(role, args)
|
||||||
local ct = args[1]
|
local ct = args[1]
|
||||||
local f1 = args[2]
|
local f1 = args[2]
|
||||||
local ct2 = args[3]
|
|
||||||
local f2 = args[4]
|
|
||||||
local onSkillEffectBefore = function(skill, e, func)
|
local onSkillEffectBefore = function(skill, e, func)
|
||||||
if skill.type == BattleSkillType.Special then
|
if skill.type == BattleSkillType.Special then
|
||||||
if e.type == 103 then -- 当前只对技能效果103生效
|
if e.type == 103 then -- 当前只对技能效果103生效
|
||||||
local factor = BattleUtil.ErrorCorrection(BattleUtil.CountValue(e.args[3], f1, ct))
|
local factor = BattleUtil.ErrorCorrection(BattleUtil.CountValue(e.args[3], f1, ct))
|
||||||
e.args[3] = factor
|
e.args[3] = factor
|
||||||
if ct2 and f2 then
|
|
||||||
e.args[4] = BattleUtil.ErrorCorrection(BattleUtil.CountValue(e.args[4], f2, ct2))
|
|
||||||
end
|
|
||||||
if func then func(e) end
|
if func then func(e) end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue