| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -39,6 +39,10 @@ local function Load(dir) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    for i = 1, #files do | 
					 | 
					 | 
					 | 
					    for i = 1, #files do | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        local file = files[i] | 
					 | 
					 | 
					 | 
					        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 | 
					 | 
					 | 
					 | 
					        if file:sub(-4) == ".lua" or file:sub(-5) == '.luac' then | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Bastion:Require(dir .. file:sub(1, -5)) | 
					 | 
					 | 
					 | 
					            Bastion:Require(dir .. file:sub(1, -5)) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        end | 
					 | 
					 | 
					 | 
					        end | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -287,7 +291,7 @@ function Bastion.Bootstrap() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  "local " .. spellName .. | 
					 | 
					 | 
					 | 
					                                  "local " .. spellName .. | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      " = Bastion.Globals.SpellBook:GetSpell(" .. | 
					 | 
					 | 
					 | 
					                                      " = Bastion.Globals.SpellBook:GetSpell(" .. | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      spellID .. ")\n", true) | 
					 | 
					 | 
					 | 
					                                      spellID .. ")\n", true) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    end                end | 
					 | 
					 | 
					 | 
					                    end | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            end | 
					 | 
					 | 
					 | 
					            end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        end | 
					 | 
					 | 
					 | 
					        end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        local numSpells, petToken = C_SpellBook.HasPetSpells()  -- nil if pet does not have spellbook, 'petToken' will usually be "PET" | 
					 | 
					 | 
					 | 
					        local numSpells, petToken = C_SpellBook.HasPetSpells()  -- nil if pet does not have spellbook, 'petToken' will usually be "PET" | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |