From 296ebb16900f750d0ffe22784639321cc58fe5a7 Mon Sep 17 00:00:00 2001 From: CiscOH Bellic Date: Sat, 17 Aug 2024 22:32:50 -0400 Subject: [PATCH] "Added skip for 'Example' files in Load function and fixed indentation in Bootstrap function." --- src/_bastion.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"