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