View Single Post
03-23-10, 04:30 AM   #2
Mokhtar
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: May 2007
Posts: 22
Well not really, you could always do something like this but it is not necessarily faster :

Code:
local _, class = UnitClass("player")
local allowed = {
	["HUNTER"]=true,
	["MAGE"]=true,
	["ROGUE"]=true,
	...
}
if allowed[class] then
-- do pure dps code here
else
-- finish function
end
  Reply With Quote