View Single Post
09-08-08, 03:08 PM   #30
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 109
So if we take this function

Code:
function test()
  if IS_WRATH then
    name,_,_,stack,_,duration,timeleft = UnitBuff(target,n) 
  else
    name,_,_,stack,duration,timeleft = UnitBuff(target,n)
  end
  return name,stack,duration,timeleft
end
name,stack,duration,timeleft are all declared as global variables?

I assume this would not be the case if we declared

Code:
local function test()
  ...
??
  Reply With Quote