This commit is contained in:
puxuan 2025-10-31 14:47:51 +08:00
parent 97dc194256
commit 37550a3013
2 changed files with 6 additions and 1 deletions

View File

@ -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()

View File

@ -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