Module:AbilityTable/ComplexRenderers: Difference between revisions

Vergir (talk | contribs)
remove RenderDebuff and is_base_property helper, no longer needed (with help from vergir-bot LLM)
add RenderDivineBarrier for Is Ultimate column (with help from vergir-bot LLM)
Line 325: Line 325:
     end
     end
     return render_upgradable_stat(ability, "Heal Reduction", filtered, "%")
     return render_upgradable_stat(ability, "Heal Reduction", filtered, "%")
end
-- Renders "Is Ultimate" column for Divine Barrier.
-- Receives ability info (hero name, slot number) as second parameter.
function p.RenderDivineBarrier(ability, info)
    local cells = {}
    if info and info.abilityNum == 4 then
        cells["Is Ultimate"] = "✔"
    end
    return cells
end
end