Module:Abilities/utils: Difference between revisionsGive feedback
No edit summary |
Fix for lowercase abilities not appearing in tooltips |
||
| 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 == ability_name then | if current_name and current_name:lower() == ability_name:lower() then | ||
return hero_key | |||
end | end | ||
end | end | ||