bug修复

This commit is contained in:
xiekaidong 2023-08-11 17:50:15 +08:00
parent 03ed69d44a
commit de16254cb0

View File

@ -343,9 +343,11 @@ function BattleBaseController:onLinkChange()
end
local elementTypeCount = 0
if dmgElementTypeMap then
for element, count in pairs(dmgElementTypeMap) do
elementTypeCount = elementTypeCount + count
end
end
local dmg = self:calExpectedInjury(mainElementType, elementTypeCount, dmgSkillId)
local defMainUnitcomp = self:getCurOtherActionUnitComp()
if defMainUnitcomp then