Module:Abilities/utils: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
Fix for lowercase abilities not appearing in tooltips
LVL (talk | contribs)
Undo revision 64710 by LVL (talk)
Tag: Undo
Line 35: Line 35:
for ability_num, ability in pairs(ui_data) do
for ability_num, ability in pairs(ui_data) do
local current_name = lang.get_string(ability.Key)
local current_name = lang.get_string(ability.Key)
if current_name and current_name:lower() == ability_name:lower() then
if current_name == ability_name then
    return hero_key
return hero_key
end
end
end
end