diff --git a/src/_bastion.lua b/src/_bastion.lua index 11d1e88..c0065be 100644 --- a/src/_bastion.lua +++ b/src/_bastion.lua @@ -39,6 +39,10 @@ local function Load(dir) for i = 1, #files do local file = files[i] + if file:sub(1, 7) == 'Example' then + -- print("Skipping example file", file) + return + end if file:sub(-4) == ".lua" or file:sub(-5) == '.luac' then Bastion:Require(dir .. file:sub(1, -5)) end @@ -287,7 +291,7 @@ function Bastion.Bootstrap() "local " .. spellName .. " = Bastion.Globals.SpellBook:GetSpell(" .. spellID .. ")\n", true) - end end + end end end local numSpells, petToken = C_SpellBook.HasPetSpells() -- nil if pet does not have spellbook, 'petToken' will usually be "PET"