fix paladin spec detection

This commit is contained in:
Sumsebrum 2022-08-07 05:38:12 +02:00
parent bc40bbce0a
commit 9d03fa5ff3

View File

@ -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"]})