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

18 lines
558 B
Lua
Raw Normal View History

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),
}
return Events
end
2024-09-01 20:49:41 +00:00
function XRedPointConditionGuildWarTaskRed.Check()
2024-09-01 20:49:41 +00:00
if not XDataCenter.GuildManager.IsJoinGuild() then
return false
end
return XDataCenter.GuildWarManager.CheckTaskAchieved()
end
return XRedPointConditionGuildWarTaskRed