UnitName("unit") error
when leaving/joining raids this line sometimes gives me the error:
Usage: UnitName("unit")
local tarname = UnitName(tarframe:GetAttribute("unit"))
Now i want to create an If so it doesn't error but i don't have a clue what to check so it bypasses this line if i guess the GetAttribute("unit") is empty.
|