Module:HeroData: Difference between revisionsGive feedback
m get_ability_key from hero key and slot number initial |
m fixed get_ability_key returning ability data instead of the ability data's key |
||
| Line 100: | Line 100: | ||
local bound_abilities_data = hero_data["BoundAbilities"] | local bound_abilities_data = hero_data["BoundAbilities"] | ||
if (bound_abilities_data == nil) then return "Hero key " .. hero_key.. " has no BoundAbilities" end | if (bound_abilities_data == nil) then return "Hero key " .. hero_key.. " has no BoundAbilities" end | ||
return bound_abilities_data[tonumber(bound_slot_number)] | return bound_abilities_data[tonumber(bound_slot_number)]["Key"] | ||
end | end | ||