Quantcast WoWInterface - View Single Post - How to disable Addon for specific Class Spec?
View Single Post
04-05-19, 04:56 AM   #3
Ekaterina
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 57
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

wow.gamepedia.com/API_GetSpecialization
  Reply With Quote