Skip to content

Commit

Permalink
影藏载具施法条
Browse files Browse the repository at this point in the history
增加动摇意志的监视
  • Loading branch information
Paojy committed Feb 7, 2013
1 parent 36e3a78 commit 583f146
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions core/core.lua
Expand Up @@ -49,7 +49,7 @@ local backdrop = {
}

local frameBD = {
edgeFile = [=[Interface\AddOns\oUF_Mlight\media\grow]=], edgeSize = 3,
edgeFile = [=[Interface\AddOns\oUF_Mlight\media\glow]=], edgeSize = 3,
bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=],
insets = {left = 3, right = 3, top = 3, bottom = 3}
}
Expand Down Expand Up @@ -317,7 +317,7 @@ end
local CpointsPostUpdate = function(element, cur)
for i = 1, 5 do
if cur == MAX_COMBO_POINTS then
element[i]:SetStatusBarColor(unpack(cpoints_colors[cur]))
element[i]:SetStatusBarColor(unpack(cpoints_colors[MAX_COMBO_POINTS]))
else
element[i]:SetStatusBarColor(unpack(cpoints_colors[i]))
end
Expand All @@ -327,7 +327,7 @@ end
local ClassIconsPostUpdate = function(element, cur, max, maxchange)
for i = 1, 5 do
if cur == max then
element[i]:SetStatusBarColor(unpack(classicon_colors[cur]))
element[i]:SetStatusBarColor(unpack(classicon_colors[max]))
else
element[i]:SetStatusBarColor(unpack(classicon_colors[i]))
end
Expand Down Expand Up @@ -461,10 +461,14 @@ local CreateAuraTimer = function(self, elapsed)
end
end

local whitelist = {
["123059"] = true, -- ¶¯Ò¡ÒâÖ¾
}

local PostUpdateIcon = function(icons, unit, icon, index, offset)
local name, _, _, _, _, duration, expirationTime, _, _, _, SpellID = UnitAura(unit, index, icon.filter)

if icon.isPlayer or UnitIsFriend("player", unit) or not icon.isDebuff or oUF_MlightDB.AuraFilterwhitelist[tostring(SpellID)] then
if icon.isPlayer or UnitIsFriend("player", unit) or not icon.isDebuff or oUF_MlightDB.AuraFilterwhitelist[tostring(SpellID)] or whitelist[tostring(SpellID)] then
icon.icon:SetDesaturated(false)
if duration and duration > 0 then
icon.remaining:Show()
Expand Down Expand Up @@ -505,10 +509,6 @@ local CustomFilter = function(icons, unit, icon, ...)
end
end

whitelist = {
["123059"] = true, -- ¶¯Ò¡ÒâÖ¾
}

local BossAuraFilter = function(icons, unit, icon, ...)
local SpellID = select(11, ...)
if icon.isPlayer or not icon.isDebuff then -- show buff and my auras
Expand Down Expand Up @@ -999,4 +999,7 @@ function EventFrame:ADDON_LOADED(arg1)
end
end
end)
end
end

PetCastingBarFrame:Hide()
PetCastingBarFrame:UnregisterAllEvents()

0 comments on commit 583f146

Please sign in to comment.