added line break to dump spells

pull/15/head
CiscOH 1 year ago
parent 94b584a99b
commit ba9de7753f
  1. 2
      src/_bastion.lua

@ -233,7 +233,7 @@ Command:Register('dumpspells', 'Dump spells to a file', function()
if spellID then
spellName = spellName:gsub("[%W%s]", "")
WriteFile('bastion-' .. UnitClass('player') .. '-' .. rand .. '.lua',
"local " .. spellName .. " = Bastion.Globals.SpellBook:GetSpell(" .. spellID .. ")", true)
"local " .. spellName .. " = Bastion.Globals.SpellBook:GetSpell(" .. spellID .. ")\n", true)
end
i = i + 1
end

Loading…
Cancel
Save