From 9d03fa5ff36fbf1c4e9597b5a55903492bcc39a0 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Sun, 7 Aug 2022 05:38:12 +0200 Subject: [PATCH] fix paladin spec detection --- EventListener.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EventListener.lua b/EventListener.lua index 3e4cace..d195108 100644 --- a/EventListener.lua +++ b/EventListener.lua @@ -362,7 +362,7 @@ function EventListener:DetectSpec(unit, spec) if (not button or not spec or button.spec) then return end - if button.class == "PALADIN" and Gladdy:contains(spec, {L["Holy"], L["Retribution"], L["Protection"]}) + if button.class == "PALADIN" and not Gladdy:contains(spec, {L["Holy"], L["Retribution"], L["Protection"]}) or button.class == "SHAMAN" and not Gladdy:contains(spec, {L["Restoration"], L["Enhancement"], L["Elemental"]}) or button.class == "ROGUE" and not Gladdy:contains(spec, {L["Subtlety"], L["Assassination"], L["Combat"]}) or button.class == "WARLOCK" and not Gladdy:contains(spec, {L["Demonology"], L["Destruction"], L["Affliction"]})