【心愿】判断神将是否加入版本

dev_chengFeng
gaoxin 2022-02-11 16:11:58 +08:00
parent 2b413264fd
commit 0ec5cf102a
1 changed files with 6 additions and 1 deletions

View File

@ -540,7 +540,12 @@ function this.GetCurHeroList(curIndex)
local heroList = {}
local time = (GetTimeStamp() - RecruitManager.openTime)/(60*60*24)--开服时间戳或是0用于判断心愿神将是否加入卡池
for index, v in ipairs(RecruitManager.GetRewardPreviewData(PRE_REWARD_POOL_TYPE.RECRUIT)) do
if heroConfig[v.Reward[1]].Star == 5 and heroConfig[v.Reward[1]].PropertyName == curIndex and heroConfig[v.Reward[1]].Weight > 0 and time > heroConfig[v.Reward[1]].JoinWishDay then
if heroConfig[v.Reward[1]].Star == 5
and heroConfig[v.Reward[1]].PropertyName == curIndex
and heroConfig[v.Reward[1]].Weight > 0
and time > heroConfig[v.Reward[1]].JoinWishDay
and HeroManager.InVersion(v.Reward[1]) -- 判断神将是否加入版本
then
table.insert(heroList,v)
end
end