2023-07-14 19:35:33 +00:00
|
|
|
local XRedPointConditionGuildWarTaskRed = {}
|
|
|
|
local Events = nil
|
|
|
|
function XRedPointConditionGuildWarTaskRed.GetSubEvents()
|
|
|
|
Events = Events or {
|
|
|
|
XRedPointEventElement.New(XEventId.EVENT_GUILDWAR_TASK_REFRESH),
|
2024-09-01 20:49:41 +00:00
|
|
|
XRedPointEventElement.New(XEventId.EVENT_GUILD_DATA_CHANGED),
|
2023-07-14 19:35:33 +00:00
|
|
|
}
|
|
|
|
return Events
|
|
|
|
end
|
2024-09-01 20:49:41 +00:00
|
|
|
|
2023-07-14 19:35:33 +00:00
|
|
|
function XRedPointConditionGuildWarTaskRed.Check()
|
2024-09-01 20:49:41 +00:00
|
|
|
if not XDataCenter.GuildManager.IsJoinGuild() then
|
|
|
|
return false
|
|
|
|
end
|
2023-07-14 19:35:33 +00:00
|
|
|
return XDataCenter.GuildWarManager.CheckTaskAchieved()
|
|
|
|
end
|
|
|
|
|
|
|
|
return XRedPointConditionGuildWarTaskRed
|