Module:Abilities/card: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
Temporary change for mcginnis heal radius to appear
LVL (talk | contribs)
Reverted temp healradius fix as its now fixed in in the data page.
Line 285: Line 285:
end
end
end
end
 
-- === SPECIAL CASE: Auto-include HealRadius in Info1 ===
if info_section_num == 1 and ability.Range and ability.Range.HealRadius then
local healRadius = ability.Range.HealRadius
-- Only add if it's not already in Props (avoid duplicates)
local alreadyExists = false
for _, prop in ipairs(props) do
if prop.Key == "HealRadius" or (prop.Name and prop.Name == "Heal Radius") then
alreadyExists = true
break
end
end
if not alreadyExists then
table.insert(props, {
Key = "HealRadius",
Name = healRadius.Name or "Heal Radius",
Value = healRadius.Value,
Type = healRadius.Type or "distance",
Scale = healRadius.Scale  -- preserve scaling info
})
end
end
 
--- A set of stat types that represent absolute values and should not have a '+' prefix.
--- A set of stat types that represent absolute values and should not have a '+' prefix.
local ABSOLUTE_VALUE_TYPES = {
local ABSOLUTE_VALUE_TYPES = {