17,101
edits
Falterfire (talk | contribs) (Fixed incorrect duration) |
m (Formatting tweaks) |
||
Line 25: | Line 25: | ||
section = 'Auroras' | section = 'Auroras' | ||
elseif type == 'Alt Magic' or type == 'Alternative Magic' then | elseif type == 'Alt Magic' or type == 'Alternative Magic' then | ||
section='AltMagic' | section = 'AltMagic' | ||
end | end | ||
Line 57: | Line 57: | ||
section = 'Auroras' | section = 'Auroras' | ||
elseif type == 'Alt Magic' or type == 'Alternative Magic' then | elseif type == 'Alt Magic' or type == 'Alternative Magic' then | ||
section='AltMagic' | section = 'AltMagic' | ||
end | end | ||
Line 77: | Line 77: | ||
return "Combat Spell" | return "Combat Spell" | ||
elseif type == 'Ancient' then | elseif type == 'Ancient' then | ||
return 'Ancient Magick' | |||
end | end | ||
end | end | ||
Line 237: | Line 237: | ||
end | end | ||
table.sort(spellList, function(a, b) | table.sort(spellList, function(a, b) | ||
if a.type ~= b.type then | |||
return p.getSpellTypeIndex(a.type) < p.getSpellTypeIndex(b.type) | |||
else | |||
return a.level < b.level | |||
end | |||
end) | |||
return spellList | return spellList | ||
end | end |