Editing Module:Abilities/cardGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 199: | Line 199: | ||
-- healing, charges) that always hold a value of 1 and are never displayed, so | -- healing, charges) that always hold a value of 1 and are never displayed, so | ||
-- return the first entry that actually renders a badge. | -- return the first entry that actually renders a badge. | ||
local function pick_scale(attr) | local function pick_scale(attr) | ||
if not attr then | if not attr then | ||
| Line 217: | Line 214: | ||
end | end | ||
for _, entry in ipairs(scale) do | for _, entry in ipairs(scale) do | ||
if type(entry) == 'table' and Icon.isDisplayedScale(entry.Type) then | if type(entry) == 'table' and entry.Value ~= 0 and Icon.isDisplayedScale(entry.Type) then | ||
return entry | |||
end | end | ||
end | end | ||
return | return nil | ||
end | end | ||