fix bug
This commit is contained in:
parent
97dc194256
commit
37550a3013
@ -75,7 +75,7 @@ BattleFormula.calculateFormula = {
|
||||
end
|
||||
|
||||
if unitComp:checkMonsterDmgAdd() and unitComp:getSide() == BattleConst.SIDE_ATK then
|
||||
if unitComp.unitEntity:getIsBoss() then
|
||||
if targetUnit.unitEntity:getIsBoss() then
|
||||
monsterDmgPAdd = unitComp.unitEntity:getBossHurtP()
|
||||
else
|
||||
monsterDmgPAdd = unitComp.unitEntity:getMonsterHurtP()
|
||||
|
||||
@ -320,6 +320,11 @@ function BattleBaseUI:initSpeedBtn()
|
||||
if not spdBtn then
|
||||
return
|
||||
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"]
|
||||
spdBtn:addClickListener(function()
|
||||
if not DataManager.PrivilegeCardData:getIsMonthlyCardActive() then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user