bug修复
This commit is contained in:
parent
03ed69d44a
commit
de16254cb0
@ -343,8 +343,10 @@ function BattleBaseController:onLinkChange()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local elementTypeCount = 0
|
local elementTypeCount = 0
|
||||||
for element, count in pairs(dmgElementTypeMap) do
|
if dmgElementTypeMap then
|
||||||
elementTypeCount = elementTypeCount + count
|
for element, count in pairs(dmgElementTypeMap) do
|
||||||
|
elementTypeCount = elementTypeCount + count
|
||||||
|
end
|
||||||
end
|
end
|
||||||
local dmg = self:calExpectedInjury(mainElementType, elementTypeCount, dmgSkillId)
|
local dmg = self:calExpectedInjury(mainElementType, elementTypeCount, dmgSkillId)
|
||||||
local defMainUnitcomp = self:getCurOtherActionUnitComp()
|
local defMainUnitcomp = self:getCurOtherActionUnitComp()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user