Module:Abilities-test/card: Difference between revisions

mNo edit summary
m Fix display of nil values
Line 328: Line 328:
scale_value = prop.Scale and commonutils.round_to_sig_fig(prop.Scale.Value, 3),
scale_value = prop.Scale and commonutils.round_to_sig_fig(prop.Scale.Value, 3),
scale_type =  prop.Scale and prop.Scale.Type,
scale_type =  prop.Scale and prop.Scale.Type,
hide = value == 0 and "true" or "false",
hide = (value == nil or value == 0) and "true" or "false",
}
}
}
}