diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Effect.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Effect.lua index ca00202f2f..a9d65748cf 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Effect.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Base/Effect.lua @@ -2272,7 +2272,7 @@ local effectList = { local f1 = args[2] BattleLogic.WaitForTrigger(interval, function () - local damage = 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) end) end, @@ -2335,7 +2335,7 @@ local effectList = { local f1 = args[2] BattleLogic.WaitForTrigger(interval, function () - local damage = 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) end) end, diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/FloatNode.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/FloatNode.lua index 702b481d9b..09c14d439f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/FloatNode.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/FloatNode.lua @@ -2,7 +2,7 @@ FloatNode = {} local floatingEffect = "FloatingText" local buffFloatingEffect = "BuffFloatingText" - +local floor = math.floor -- 普通文字 TextFloatingColor = { Blue = 1, @@ -152,6 +152,7 @@ end function FloatNode:GetArtText(type, color, value) local text = "" + value=floor(value) if type == ArtFloatingType.CritDamage then text = text .. string.char(33) -- 暴击文字 text = text .. string.char((color*2)+110) -- 减号