Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: SDPhantom
Forum: Lua/XML Help 11-22-20, 05:47 PM
Replies: 8
Views: 7,209
Posted By SDPhantom
I'd honestly convert it to a loop. function...

I'd honestly convert it to a loop.

function BattleDex.RecordBattle()
if not C_PetBattles.IsWildBattle() then return; end

local primary=0;
for i=1,C_PetBattles.GetNumPets(2) do
local...
Forum: Lua/XML Help 11-21-20, 11:46 PM
Replies: 8
Views: 7,209
Posted By SDPhantom
That's the spot it's complaining about. Line 69...

That's the spot it's complaining about. Line 69 in function BattleDex.RecordPet(). The only line there that would generate that error (there are other operations like it, but it would throw a...
Forum: Lua/XML Help 11-21-20, 09:00 PM
Replies: 8
Views: 7,209
Posted By SDPhantom
SavedVars should be ready by the time...

SavedVars should be ready by the time ADDON_LOADED fires. It's part of the addon loading process. The error isn't complaining about the table itself being nil, there's a different error for that. The...
Showing results 1 to 3 of 3