Module:Abilities/card: Difference between revisions

m off-by-one
m Ensure nil becomes empty string when retrieving attribute icon data
Line 384: Line 384:
local color = 'Grey'
local color = 'Grey'
if mappedAttr then
if mappedAttr then
img = mappedAttr.img
img = mappedAttr.img or img
link = mappedAttr.link
link = mappedAttr.link or link
size = mappedAttr.size
size = mappedAttr.size or size
color = mappedAttr.color or color
color = mappedAttr.color or color
end
end