View Single Post
12-22-09, 12:00 AM   #4
thejoester
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 10
Originally Posted by Xrystal View Post
Prior to that line add the following :

print("DEBUG: Spell ID:",SID);

Then see what it shows in your chat window. Maybe it is getting to that line prior to the OnLoad call. You can test this by setting SID at the top of your lua file it is used in and set it to a value there.

OK i found the issue, I was assigning its value from UnitBuff() and passing it the spell id, however it doesn't always have a value for spell id.

So I created a function to check the value and if it was nil then I assigned it "none" and that fixed it.

Also, I only made it a global variable because I was trying to get rid of the error. I have made it local again.
  Reply With Quote