PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionPokemonNewRole.lua
2022-12-26 14:06:01 +05:30

16 lines
No EOL
539 B
Lua

local XRedPointConditionPokemonNewRole = {}
local Events = nil
function XRedPointConditionPokemonNewRole.GetSubEvents()
end
function XRedPointConditionPokemonNewRole.Check(monsterId)
if not XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.Pokemon) then
return false
end
local key = string.format("%s_%s_%s", XPokemonConfigs.PokemonNewRoleClickedPrefix, tostring(XPlayer.Id), tostring(monsterId))
local isClicked = XSaveTool.GetData(key)
return isClicked
end
return XRedPointConditionPokemonNewRole