fix bug
This commit is contained in:
parent
2ec6c8c950
commit
e5e23cc06c
@ -108,7 +108,11 @@ function ArenaManager:rspChallenge(result)
|
|||||||
atkFormation = atkFormation,
|
atkFormation = atkFormation,
|
||||||
defFormation = defFormation
|
defFormation = defFormation
|
||||||
}
|
}
|
||||||
ModuleManager.BattleManager:playBattle(GConst.BattleConst.BATTLE_TYPE.ARENA, params)
|
ModuleManager.BattleManager:playBattle(GConst.BattleConst.BATTLE_TYPE.ARENA, params, function ()
|
||||||
|
UIManager:closeAllUI()
|
||||||
|
ModuleManager.MaincityManager:showMainCityUI()
|
||||||
|
self:showArenaUI()
|
||||||
|
end)
|
||||||
|
|
||||||
--bi上报
|
--bi上报
|
||||||
LocalData:recordTodayArenaBattle()
|
LocalData:recordTodayArenaBattle()
|
||||||
|
|||||||
@ -281,6 +281,12 @@ function ArenaUI:refreshFightBtn()
|
|||||||
self.fightCost:setActive(false)
|
self.fightCost:setActive(false)
|
||||||
self.countTxNum:setActive(false)
|
self.countTxNum:setActive(false)
|
||||||
self.fightBtn:setActive(true)
|
self.fightBtn:setActive(true)
|
||||||
|
|
||||||
|
if DataManager.ArenaData:hasTicket() then
|
||||||
|
self.fightBtn:addRedPoint(120, 40, 1)
|
||||||
|
else
|
||||||
|
self.fightBtn:removeRedPoint()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return ArenaUI
|
return ArenaUI
|
||||||
@ -12,7 +12,8 @@ function PlayerLevelUpUI:ctor(params)
|
|||||||
params = params or GConst.EMPTY_TABLE
|
params = params or GConst.EMPTY_TABLE
|
||||||
|
|
||||||
self.fromLevel = params.fromLevel
|
self.fromLevel = params.fromLevel
|
||||||
self.rewards = params.rewards or GConst.EMPTY_TABLE
|
self.rewards = {}
|
||||||
|
GFunc.mergeRewards2(params.rewards or GConst.EMPTY_TABLE, self.rewards, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
function PlayerLevelUpUI:onLoadRootComplete()
|
function PlayerLevelUpUI:onLoadRootComplete()
|
||||||
|
|||||||
@ -464,7 +464,11 @@ function ArenaData:hasEntranceRedDot()
|
|||||||
if not self:isOpen() then
|
if not self:isOpen() then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_ARENA_TICKET) > 0 or self:hasSeasonReward() or self:hasGradingRewardRedDot()
|
return self:hasSeasonReward() or self:hasGradingRewardRedDot() or self:hasTicket()
|
||||||
|
end
|
||||||
|
|
||||||
|
function ArenaData:hasTicket()
|
||||||
|
return DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_ARENA_TICKET) > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 广告宝箱 ----------------------------------------------------------------------
|
-- 广告宝箱 ----------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user