显示bug修复
This commit is contained in:
parent
24d90bfd1c
commit
4c8eff015e
@ -331,7 +331,6 @@ function BattleBaseController:onLinkChange()
|
|||||||
elementTypeCount = elementTypeCount + count
|
elementTypeCount = elementTypeCount + count
|
||||||
end
|
end
|
||||||
local dmg = self:calExpectedInjury(mainElementType, elementTypeCount, dmgSkillId)
|
local dmg = self:calExpectedInjury(mainElementType, elementTypeCount, dmgSkillId)
|
||||||
Logger.logHighlight(dmg)
|
|
||||||
local defMainUnitcomp = self:getCurOtherActionUnitComp()
|
local defMainUnitcomp = self:getCurOtherActionUnitComp()
|
||||||
if defMainUnitcomp then
|
if defMainUnitcomp then
|
||||||
local hp = defMainUnitcomp.unitEntity:getHp()
|
local hp = defMainUnitcomp.unitEntity:getHp()
|
||||||
@ -1214,11 +1213,11 @@ end
|
|||||||
|
|
||||||
function BattleBaseController:onLinkOver()
|
function BattleBaseController:onLinkOver()
|
||||||
local hp = self.atkTeam:getMainUnit().unitEntity:getHp()
|
local hp = self.atkTeam:getMainUnit().unitEntity:getHp()
|
||||||
local hpPercent = self.atkTeam:getMainUnit().unitEntity:getMaxHp()
|
local hpPercent = self.atkTeam:getMainUnit().unitEntity:getHpPercent()
|
||||||
self.battleUI:setAtkHp(hp, hpPercent)
|
self.battleUI:setAtkHp(hp, hpPercent)
|
||||||
|
|
||||||
local hp = self.defTeam:getMainUnit().unitEntity:getHp()
|
local hp = self.defTeam:getMainUnit().unitEntity:getHp()
|
||||||
local hpPercent = self.defTeam:getMainUnit().unitEntity:getMaxHp()
|
local hpPercent = self.defTeam:getMainUnit().unitEntity:getHpPercent()
|
||||||
self.battleUI:setDefHp(hp, hpPercent)
|
self.battleUI:setDefHp(hp, hpPercent)
|
||||||
|
|
||||||
self.battleUI:hideAllSfxLine()
|
self.battleUI:hideAllSfxLine()
|
||||||
|
|||||||
@ -82,13 +82,15 @@ function SummonData:getSummonRewardByLv(summonType, level)
|
|||||||
for _, reward in ipairs(rewards) do
|
for _, reward in ipairs(rewards) do
|
||||||
local find = false
|
local find = false
|
||||||
for index, rewardBase in ipairs(cfgInfo.box_lv_base) do
|
for index, rewardBase in ipairs(cfgInfo.box_lv_base) do
|
||||||
if reward.type == rewardBase.type and reward.id == rewardBase.id and reward.num > rewardBase.num then
|
if reward.type == rewardBase.type and reward.id == rewardBase.id and reward.num >= rewardBase.num then
|
||||||
local num = reward.num - rewardBase.num
|
local num = reward.num - rewardBase.num
|
||||||
|
if num ~= 0 then
|
||||||
table.insert(self.cacheSummonRewardByLv[level], {
|
table.insert(self.cacheSummonRewardByLv[level], {
|
||||||
id = reward.id,
|
id = reward.id,
|
||||||
type = reward.type,
|
type = reward.type,
|
||||||
num = num
|
num = num
|
||||||
})
|
})
|
||||||
|
end
|
||||||
find = true
|
find = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user