【战斗】===========新增124效果 造成目标[a]*[b]%的直接伤害

dev_chengFeng
wangzhenxing 2021-01-08 17:36:03 +09:00
parent 49a0424ba0
commit 503be01f18
1 changed files with 11 additions and 0 deletions

View File

@ -2328,6 +2328,17 @@ local effectList = {
end
BattleUtil.SeckillHP(skill,caster,target,pro)
end,
-- 造成目标[a]*[b]%的直接伤害(不会被分摊机制分摊)
-- a[属性],b[float]
[124] = function(caster, target, args, interval, skill)
local pro = args[1]
local f1 = args[2]
BattleLogic.WaitForTrigger(interval, function ()
local damage = BattleUtil.ErrorCorrection(f1 * target:GetRoleData(BattlePropList[pro]))
BattleUtil.FinalDamage(skill, caster, target, damage, nil, 0, nil, true)
end)
end,
}