【竞技场】修复竞技场赛季切换时也会显示红点儿的问题

dev_chengFeng
gaoxin 2021-04-29 17:12:12 +08:00
parent bfe66493ab
commit d413915c6a
2 changed files with 4 additions and 4 deletions

View File

@ -353,7 +353,7 @@ function this.SetHadTakeBoxData(boxId)
end
function this.FreeBattleRedCheck()
return (this.GetArenaChallengeTimes() > 0) and ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.ARENA)
return (this.GetArenaChallengeTimes() > 0) and ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.ARENA)
end
function this.RewardBoxRedCheck()
@ -364,7 +364,7 @@ function this.RewardBoxRedCheck()
for i = 1, 7 do
if arenaBattleReward[i] then
local state = 1--1 未完成 2 未领取 3 已完成allNums >= arenaBattleReward[i].BattleTimes and false
if allNums >= arenaBattleReward[i].BattleTimes and not allBoxGetState[i] and ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.ARENA) then
if allNums >= arenaBattleReward[i].BattleTimes and not allBoxGetState[i] and ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.ARENA) then
return true
end
end

View File

@ -327,8 +327,8 @@ function this.RegisterRedCheckFunc()
RPData:AddCheckFunc(RedPointType.Role, HeroManager.GetFormationHeroRedPoint)
--竞技场部分红点
RPData:AddCheckFunc(RedPointType.Arena_Free, ArenaManager.FreeBattleRedCheck)
RPData:AddCheckFunc(RedPointType.Arena_Reward, ArenaManager.RewardBoxRedCheck)
RPData:AddCheckFunc(RedPointType.Arena_Free, ArenaManager.FreeBattleRedCheck, FUNCTION_OPEN_TYPE.ARENA)
RPData:AddCheckFunc(RedPointType.Arena_Reward, ArenaManager.RewardBoxRedCheck, FUNCTION_OPEN_TYPE.ARENA)
---=== 商店相关红点
-- RPData:AddCheckFunc(RedPointType.Arena_Shop, ShopManager.ShopRedCheck)