• 0

    posted a message on How to disable Addon for specific Class Spec?

    If you put your main lua file in an if-statement like below it should work I think - uncomment additional specs if you want more blacklisted:

    local specBlacklist = {
    -- Monk
    --268, -- Brewmaster
    --269, -- Windwalker
    270, -- Mistweaver

    -- Paladin
    65, -- Holy
    --66, -- Protection
    --70 , -- Retribution

    -- Priest
    --256, -- Discipline
    --257, -- Holy
    --258, -- Shadow

    -- Druid
    --102, -- Balance
    --103, -- Feral
    --104, -- Guardian
    --105, -- Restoration

    -- Warlock
    --265, -- Affliction
    --266, -- Demonology
    --267, -- Destruction

    -- Death Knight
    --250, -- Blood
    --251, -- Frost
    --252, -- Unholy

    -- Demon Hunter
    --577, -- Havoc
    --581, -- Vengeance

    -- Hunter
    --253, -- Beast Mastery
    --254, -- Marksmanship
    --255, -- Survival

    -- Mage
    --62, -- Arcane
    --63, -- Fire
    --64, -- Frost

    -- Rogue
    --259, -- Assassination
    --260, -- Outlaw
    --261, -- Subtlety

    -- Shaman
    --262, -- Elemental
    --263, -- Enhancement
    --264, -- Restoration

    --Warrior
    --71, -- Arms
    --72, -- Fury
    --73, -- Protection
    }
    if not specBlacklist[GetSpecializationInfo(GetSpecialization())] then

    -- YOUR ADDON HERE

    end

    Posted in: Need Help?
  • To post a comment, please or register a new account.