战斗逻辑
parent
9d70702214
commit
31f8eb2c02
|
@ -1081,17 +1081,20 @@ local effectList = {
|
|||
|
||||
local count = Random.RangeInt(i1, i2)
|
||||
local d = interval / count
|
||||
for i=1, count do
|
||||
BattleLogic.WaitForTrigger(d * (i-1), function ()
|
||||
local delayDmgTrigger
|
||||
delayDmgTrigger = function(less, d)
|
||||
if less > 0 then
|
||||
local role = target.isDead and BattleUtil.ChooseTarget(caster, 20110)[1] or target
|
||||
if role then
|
||||
caster.Event:DispatchEvent(BattleEventName.RoleViewBullet, d, role)
|
||||
BattleLogic.WaitForTrigger(d, function ()
|
||||
BattleUtil.CalDamage(caster, role, dt, f1)
|
||||
delayDmgTrigger(less-1, d)
|
||||
end)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
delayDmgTrigger(count, d)
|
||||
end,
|
||||
--造成[a]%的[b]伤害,若造成击杀,[c]的概率立即发动一次上滑技。
|
||||
--a[float],b[伤害类型],c[float]
|
||||
|
|
Loading…
Reference in New Issue