Quantcast WoWInterface - View Single Post - How to disable Addon for specific Class Spec?
View Single Post
04-05-19, 09:59 PM   #4
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Feb 2009
Posts: 30
Nice, thanks! :)

Originally Posted by Ekaterina View Post
You'd want to register for PLAYER_SPECIALIZATION_CHANGED

You can get the current spec with GetSpecialization(). Below is an example of usage from wowpedia:
Lua Code:
  1. local currentSpec = GetSpecialization()
  2. if currentSpec then
  3.    local _, currentSpecName = GetSpecializationInfo(currentSpec)
  4.    print("Your current spec:", currentSpecName)
  5. else
  6.    print("You do not currently have a spec.")
  7. end

Better than my answer and helps me too, thanks
  Reply With Quote