完整显示多段伤害

dev_chengFeng
wangzhenxing 2020-08-17 17:12:34 +09:00
parent cdf78a9dcf
commit cd5f26e8af
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
require("Modules.Battle.Logic.Misc.BattleDefine")
require("Modules.Battle.Logic.Misc.BattleDefine")
local FEAConfig = require("Modules/Battle/Config/FightEffectAudioConfig")
RoleView = {}
RoleView.__index = RoleView
@ -310,6 +310,7 @@ function RoleView:LoopFunc(time, count, func)
if not self._LoopFuncList then
self._LoopFuncList = {}
end
local timer = nil
local ctr = 0
timer = Timer.New(function ()
@ -1373,7 +1374,8 @@ function RoleView:OnDamaged(atkRole, dmg, bCrit, finalDmg, damageType, dotType,
end
--
function RoleView:OnceDamaged(atkRole, dmg, bCrit, finalDmg, damageType, dotType, skill)
if self.isDead then return end
--王振兴注释,为了解决英雄死亡多段伤害显示不完整 2020/8/17
--if self.isDead then return end
if dotType then
if dotType == DotType.Poison then
self:ArtFloating(ArtFloatingType.PoisonDamage, ArtFloatingColor.Poison, dmg)