If you just want the general spec, you can use something like
if GetPrimaryTalentTree() == 2 then
-- enhancement
end
Example: for shaman, 1 = ele, 2 = enh, 3 = resto, 0 = you haven't selected yet
The function name is misleading, it returns what your current active spec is, not what you have assigned to your Primary/Secondary spec.
Anyway, this should be much easier for you to use.
|