I am starting to develop my own addon. At the moment, I am working through code to determine a player's role in a group based on spec/stance/etc.
One "if" statement I am using feels like it could be much better:
Code:
local _, class = UnitClass("player")
if class == "HUNTER" or class == "MAGE" or class == "ROGUE" or class == "WARLOCK" then
-- do pure dps code here
else
-- finish function
end
Is there a better way to make a switch?