WoWInterface SVN Blessed

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 21 to Rev 20
    Reverse comparison

Rev 21 → Rev 20

Blessed/Blessed.lua
28,7 → 28,6
-- [86678] = 7, -- Light of the Ancient Kings
[114039] = 6, -- Hand of Purity
[105809] = 18, -- Holy Avenger
[114250] = 15, -- Selfless Healer
}
 
-- defaults
58,7 → 57,6
-- [86678] = true, -- Light of the Ancient Kings
[114039] = true, -- Hand of Purity
[105809] = true, -- Holy Avenger
[114250] = true, -- Selfless Healer
},
}
 
73,8 → 71,6
end
 
local INQUISITION = GetSpellInfo(84963)
local SELFLESSHEALER = GetSpellInfo(114250)
 
local colors = setmetatable({
DEATHKNIGHT = "c41e3a",
DRUID = "ff7c0a",
160,7 → 156,7
 
-- If new spells have been added, add them to our savedvars
for k,v in pairs(defaults.spells) do
if db.spells[k] == nil then
if not db.spells[k] then
db.spells[k] = v
end
end
236,16 → 232,9
function Blessed:COMBAT_LOG_EVENT_UNFILTERED(timestamp, combatEvent, hideCaster, sourceGUID, sourceName, sourceFlags, sourceFlagsTwo, destGUID, destName, destFlags, destFlagsTwo, spellID, ...)
if sourceGUID ~= pguid or not db.spells[spellID] then return end
 
-- Selfless healer
if (combatEvent == "SPELL_AURA_APPLIED_DOSE") then
self:RemoveFrame(spellID, true)
self:SetupIcon(spellID, destName, destGUID)
elseif (combatEvent == "SPELL_AURA_REMOVED") then
if (combatEvent == "SPELL_AURA_REMOVED") then
self:RemoveFrame(spellID, false)
elseif (combatEvent == "SPELL_AURA_APPLIED") then
-- Only track Devotion Aura on player
if spellID == 31821 and destGUID ~= pguid then return end
 
-- Get rid of Beacon, to avoid duplicates due to being in different realms
if spellID == 53563 then
self:RemoveFrame(spellID)
363,12 → 352,7
local class = select(2, GetPlayerInfoByGUID(targetGUID))
 
frame.icon:SetTexture(icon)
if spellID == 114250 then
local stacks = select(4, UnitAura("player", SELFLESSHEALER))
frame.target:SetFormattedText("|cff%s%s|r (%d)", colors[class], targetGUID ~= pguid and string.sub(targetName, 0, 3) or "You!", stacks or 0)
else
frame.target:SetFormattedText("|cff%s%s|r", colors[class], targetGUID ~= pguid and string.sub(targetName, 0, 3) or "You!")
end
frame.target:SetFormattedText("|cff%s%s|r", colors[class], targetGUID ~= pguid and string.sub(targetName, 0, 3) or "You!")
 
if spellID ~= 53563 then
frame.timer:SetFormattedText("%.0f", floor(duration))