fix bug
This commit is contained in:
parent
97dc194256
commit
37550a3013
@ -75,7 +75,7 @@ BattleFormula.calculateFormula = {
|
|||||||
end
|
end
|
||||||
|
|
||||||
if unitComp:checkMonsterDmgAdd() and unitComp:getSide() == BattleConst.SIDE_ATK then
|
if unitComp:checkMonsterDmgAdd() and unitComp:getSide() == BattleConst.SIDE_ATK then
|
||||||
if unitComp.unitEntity:getIsBoss() then
|
if targetUnit.unitEntity:getIsBoss() then
|
||||||
monsterDmgPAdd = unitComp.unitEntity:getBossHurtP()
|
monsterDmgPAdd = unitComp.unitEntity:getBossHurtP()
|
||||||
else
|
else
|
||||||
monsterDmgPAdd = unitComp.unitEntity:getMonsterHurtP()
|
monsterDmgPAdd = unitComp.unitEntity:getMonsterHurtP()
|
||||||
|
|||||||
@ -320,6 +320,11 @@ function BattleBaseUI:initSpeedBtn()
|
|||||||
if not spdBtn then
|
if not spdBtn then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if not DataManager.PrivilegeCardData:getIsOpen(GConst.ShopConst.PRIVILEGE_CARD_ID.CARD_AD) then
|
||||||
|
spdBtn:setActive(false)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
spdBtn:setActive(true)
|
||||||
local spdBtnImg = self.uiMap["battle_ui.top_node.speed_btn.img"]
|
local spdBtnImg = self.uiMap["battle_ui.top_node.speed_btn.img"]
|
||||||
spdBtn:addClickListener(function()
|
spdBtn:addClickListener(function()
|
||||||
if not DataManager.PrivilegeCardData:getIsMonthlyCardActive() then
|
if not DataManager.PrivilegeCardData:getIsMonthlyCardActive() then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user