PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionArenaTask.lua
2024-09-01 22:49:41 +02:00

16 lines
No EOL
474 B
Lua

----------------------------------------------------------------
-- 竞技任务领取检测
local XRedPointConditionArenaTask = {}
function XRedPointConditionArenaTask.Check()
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