56
edits
(Second attempt to fix nil check) |
No edit summary |
||
Line 246: | Line 246: | ||
local meetsCondition = true | local meetsCondition = true | ||
if discoveryModifier ~= nil then | if discoveryModifier ~= nil and discoveryModifier ~= '' then | ||
if POI.discoveryModifiers ~= nil then | if POI.discoveryModifiers ~= nil then | ||
local modifierText = Constants.getModifiersText(POI.discoveryModifiers.modifiers)..' (for '..POI.discoveryModifiers.moves..' travels)' | local modifierText = Constants.getModifiersText(POI.discoveryModifiers.modifiers)..' (for '..POI.discoveryModifiers.moves..' travels)' | ||
Line 255: | Line 255: | ||
end | end | ||
if activeModifier ~= nil then | if activeModifier ~= nil and activeModifier ~= '' then | ||
if POI.activeModifiers ~= nil then | if POI.activeModifiers ~= nil then | ||
local modifierText = Constants.getModifiersText(POI.activeModifiers) | local modifierText = Constants.getModifiersText(POI.activeModifiers) |
edits