Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Oct 26, 2014
1 parent 4ac98b9 commit 044df62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions ShestakUI/Libs/oUF/Modules/DebuffHighlight.lua
Expand Up @@ -8,15 +8,14 @@ local _, ns = ...
local oUF = ns.oUF

local CanDispel = {
DRUID = {Magic = false, Curse = true, Poison = true, Disease = false},
DRUID = {Magic = false, Curse = true, Poison = true},
MAGE = {Curse = true},
MONK = {Magic = false, Poison = true, Disease = true},
PALADIN = {Magic = false, Poison = true, Disease = true},
PRIEST = {Magic = false, Disease = false},
SHAMAN = {Magic = false, Curse = true}
}

local CleanseName = GetSpellInfo(4987)
local dispellist = CanDispel[T.class] or {}
local origColors = {}
local origBorderColors = {}
Expand All @@ -35,7 +34,7 @@ local function GetDebuffType(unit, filter)
end
end

local function CheckSpec(self, event)
local function CheckSpec()
if T.class == "DRUID" then
if T.CheckSpec(4) then
dispellist.Magic = true
Expand Down Expand Up @@ -121,7 +120,7 @@ local function Enable(object)
-- Make sure aura scanning is active for this object
object:RegisterEvent("UNIT_AURA", Update)
object:RegisterEvent("PLAYER_TALENT_UPDATE", CheckSpec)
CheckSpec(object)
CheckSpec()

if object.DebuffHighlightBackdrop or object.DebuffHighlightBackdropBorder then
local r, g, b, a = object:GetBackdropColor()
Expand Down
5 changes: 2 additions & 3 deletions ShestakUI/Libs/oUF/Modules/RaidDebuffs.lua
Expand Up @@ -7,7 +7,6 @@ if C.unitframe.enable ~= true or C.raidframe.plugins_aura_watch ~= true then ret
local _, ns = ...
local oUF = ns.oUF

local CleanseName = GetSpellInfo(4987)
local bossDebuffPrio = 9999999
local invalidPrio = -1
local auraFilters = {
Expand Down Expand Up @@ -40,7 +39,6 @@ do
["Magic"] = false,
["Curse"] = true,
["Poison"] = true,
["Disease"] = false,
},
["MAGE"] = {
["Curse"] = true,
Expand Down Expand Up @@ -68,7 +66,7 @@ do
DispellFilter = dispellClasses[T.class] or {}
end

local function CheckSpec(self, event)
local function CheckSpec()
if T.class == "DRUID" then
if T.CheckSpec(4) then
DispellFilter.Magic = true
Expand Down Expand Up @@ -267,6 +265,7 @@ local Enable = function(self)
return true
end
self:RegisterEvent("PLAYER_TALENT_UPDATE", CheckSpec)
CheckSpec()
end

local Disable = function(self)
Expand Down

0 comments on commit 044df62

Please sign in to comment.