Editing Module:Abilities/utilsGive feedback
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 29: | Line 29: | ||
return "Missing Ability Name" | return "Missing Ability Name" | ||
end | end | ||
-- Iterate through all heroes in the data | -- Iterate through all heroes in the data | ||
| Line 38: | 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 | if current_name == ability_name then | ||
return hero_key | return hero_key | ||
end | end | ||