Module:Abilities: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
Add check for isdisabled
LVL (talk | contribs)
Undo revision 44462 by LVL (talk)
Tag: Undo
Line 24: Line 24:
-- If not found by key, loop through and search by the "Name" property as a fallback
-- If not found by key, loop through and search by the "Name" property as a fallback
-- Skip any ability that is explicitly disabled
for _, v in pairs(raw_ability_data) do
for _, v in pairs(raw_ability_data) do
if v.Name == identifier and not v.IsDisabled then
if (v["Name"] == identifier) then
return v
return v
end
end