17,101
edits
(Re-arrange spell table generation functions & implement getSpellTableFromList()) |
(getSpellIconType: Implement for use in Template:SpellIcon) |
||
Line 120: | Line 120: | ||
return spellBook.imgType | return spellBook.imgType | ||
end | end | ||
end | |||
function p.getSpellIconType(frame) | |||
local spellName = frame.args ~= nil and frame.args[1] or frame | |||
local spell = p.getSpell(spellName) | |||
if spell == nil then | |||
return 'spell' | |||
else | |||
return p._getSpellIconType(spell) | |||
end | |||
end | end | ||