Skip to content

Commit

Permalink
[oUF] Add Mage dispells for Season of Discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
EsreverWoW committed Nov 29, 2023
1 parent 9d1cb37 commit f847f2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions ShestakUI/Libs/oUF/Modules/DebuffHighlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local oUF = ns.oUF
local CanDispel = {
DRUID = {Magic = false, Curse = true, Poison = true},
EVOKER = {Magic = false, Curse = true, Poison = true, Disease = true},
MAGE = {Curse = true},
MAGE = {Magic = false, Curse = true},
MONK = {Magic = false, Poison = true, Disease = true},
PALADIN = {Magic = false, Poison = true, Disease = true},
PRIEST = {Magic = false, Disease = true},
Expand All @@ -37,7 +37,11 @@ end

local function CheckSpec()
if T.Classic then
if T.class == "PALADIN" then
if T.class == "MAGE" and T.SoD then
if IsSpellKnown(412113) then
dispellist.Magic = true
end
elseif T.class == "PALADIN" then
dispellist.Magic = true
elseif T.class == "PRIEST" then
dispellist.Magic = true
Expand Down
9 changes: 7 additions & 2 deletions ShestakUI/Libs/oUF/Modules/RaidDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ do
},
["MAGE"] = {
["Curse"] = true,
["Magic"] = false, -- for Season of Discovery
},
["MONK"] = {
["Magic"] = false,
Expand Down Expand Up @@ -78,8 +79,12 @@ do
end

local function CheckSpec()
if oUF:IsClassic() then
if T.class == "PALADIN" then
if T.Classic then
if T.class == "MAGE" and T.SoD then
if IsSpellKnown(412113) then
DispellFilter.Magic = true
end
elseif T.class == "PALADIN" then
DispellFilter.Magic = true
elseif T.class == "PRIEST" then
DispellFilter.Magic = true
Expand Down

0 comments on commit f847f2e

Please sign in to comment.