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

18 lines
No EOL
558 B
Lua

local XRedPointConditionGuildWarTaskRed = {}
local Events = nil
function XRedPointConditionGuildWarTaskRed.GetSubEvents()
Events = Events or {
XRedPointEventElement.New(XEventId.EVENT_GUILDWAR_TASK_REFRESH),
XRedPointEventElement.New(XEventId.EVENT_GUILD_DATA_CHANGED),
}
return Events
end
function XRedPointConditionGuildWarTaskRed.Check()
if not XDataCenter.GuildManager.IsJoinGuild() then
return false
end
return XDataCenter.GuildWarManager.CheckTaskAchieved()
end
return XRedPointConditionGuildWarTaskRed