PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionArenaTask.lua

16 lines
474 B
Lua
Raw Normal View History

----------------------------------------------------------------
-- 竞技任务领取检测
local XRedPointConditionArenaTask = {}
function XRedPointConditionArenaTask.Check()
2024-09-01 20:49:41 +00:00
local dailyTasks = XDataCenter.ArenaManager.GetCurChallengeTasks()
for _, dailyTask in ipairs(dailyTasks) do
if dailyTask.State == XDataCenter.TaskManager.TaskState.Achieved then
return true
end
end
return false
end
return XRedPointConditionArenaTask