【战斗】修复持续伤害会出现小数的问题
parent
9add8d8dbf
commit
ec7e498b87
|
@ -663,7 +663,7 @@ function BattleUtil.RandomDot(rand, dot, caster, target, round, interval, damage
|
|||
caster.Event:DispatchEvent(BattleEventName.PassiveRandomDot, _CallBack, dot)
|
||||
target.Event:DispatchEvent(BattleEventName.PassiveBeRandomDot, _CallBack, dot)
|
||||
rand = BattleUtil.CountChangeList(rand, cl)
|
||||
damage = BattleUtil.CountChangeList(damage, dcl)
|
||||
damage = floor(BattleUtil.CountChangeList(damage, dcl))
|
||||
|
||||
return BattleUtil.RandomAction(rand, function()
|
||||
local buff = Buff.Create(caster, BuffName.DOT, round, interval, dot, damage)
|
||||
|
|
Loading…
Reference in New Issue