Skip to content
Permalink
Browse files

Cleanup.

  • Loading branch information
Wetxius committed Oct 26, 2014
1 parent 4ac98b9 commit 044df6264d081cc376acf56fc65db38d09be4fd8
Showing with 5 additions and 7 deletions.
  1. +3 −4 ShestakUI/Libs/oUF/Modules/DebuffHighlight.lua
  2. +2 −3 ShestakUI/Libs/oUF/Modules/RaidDebuffs.lua
@@ -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 = {}
@@ -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
@@ -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()
@@ -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 = {
@@ -40,7 +39,6 @@ do
["Magic"] = false,
["Curse"] = true,
["Poison"] = true,
["Disease"] = false,
},
["MAGE"] = {
["Curse"] = true,
@@ -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
@@ -267,6 +265,7 @@ local Enable = function(self)
return true
end
self:RegisterEvent("PLAYER_TALENT_UPDATE", CheckSpec)
CheckSpec()
end

local Disable = function(self)

0 comments on commit 044df62

Please sign in to comment.
You can’t perform that action at this time.