[战斗]===========118 124效果修改,百分比伤害对boss无效
parent
944789bec3
commit
64955313f6
|
@ -2269,9 +2269,11 @@ local effectList = {
|
||||||
-- a[属性],b[float]
|
-- a[属性],b[float]
|
||||||
[118] = function(caster, target, args, interval, skill)
|
[118] = function(caster, target, args, interval, skill)
|
||||||
local pro = args[1]
|
local pro = args[1]
|
||||||
local f1 = args[2]
|
local f1 = args[2]
|
||||||
|
|
||||||
BattleLogic.WaitForTrigger(interval, function ()
|
BattleLogic.WaitForTrigger(interval, function ()
|
||||||
|
if (pro==12 or pro==13) and BattleUtil.CheckIsBoss(target) then
|
||||||
|
return
|
||||||
|
end
|
||||||
local damage = floor(BattleUtil.ErrorCorrection(f1 * caster:GetRoleData(BattlePropList[pro])))
|
local damage = floor(BattleUtil.ErrorCorrection(f1 * caster:GetRoleData(BattlePropList[pro])))
|
||||||
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
|
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
|
||||||
end)
|
end)
|
||||||
|
@ -2333,8 +2335,10 @@ local effectList = {
|
||||||
[124] = function(caster, target, args, interval, skill)
|
[124] = function(caster, target, args, interval, skill)
|
||||||
local pro = args[1]
|
local pro = args[1]
|
||||||
local f1 = args[2]
|
local f1 = args[2]
|
||||||
|
|
||||||
BattleLogic.WaitForTrigger(interval, function ()
|
BattleLogic.WaitForTrigger(interval, function ()
|
||||||
|
if (pro==12 or pro==13) and BattleUtil.CheckIsBoss(target) then
|
||||||
|
return
|
||||||
|
end
|
||||||
local damage = floor(BattleUtil.ErrorCorrection(f1 * target:GetRoleData(BattlePropList[pro])))
|
local damage = floor(BattleUtil.ErrorCorrection(f1 * target:GetRoleData(BattlePropList[pro])))
|
||||||
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
|
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue