Editing Module:Abilities/utilsGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 37: | Line 37: | ||
-- Check each ability for this hero | -- Check each ability for this hero | ||
for ability_num, ability in pairs(ui_data) do | for ability_num, ability in pairs(ui_data) do | ||
if type(ability) == "table" and ability.Key then | |||
local current_name = lang.get_string(ability.Key) | local current_name = lang.get_string(ability.Key) | ||
if string.lower(current_name) == normalized_input then | if current_name and string.lower(current_name) == normalized_input then | ||
return hero_key | return hero_key | ||
end | |||
end | end | ||
end | end | ||