Module:Abilities/utils: Difference between revisionsGive feedback
Jump to navigation
Jump to search
added find_hero_by_ability |
corrected example call for find_hero_by_ability |
||
| Line 22: | Line 22: | ||
-- Returns the key of the hero whose ability name is passed as an argument | -- Returns the key of the hero whose ability name is passed as an argument | ||
--{{#invoke: | --{{#invoke:Abilities/utils|find_hero_by_ability|ABILITY_NAME}}-- | ||
p.find_hero_by_ability = function(frame) | p.find_hero_by_ability = function(frame) | ||
local ability_name = frame.args[1] | local ability_name = frame.args[1] | ||