Quantcast WoWInterface: SVN - Blessed - Path Comparison - / Rev 30 and / Rev 31

WoWInterface SVN Blessed

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 30 to Rev 31
    Reverse comparison

Rev 30 → Rev 31

trunk/Blessed/Blessed.lua
18,7 → 18,7
[54428] = 9, -- Divine Plea
[31821] = 6, -- Devotion Aura
[84963] = 10, -- Inquisition
[88819] = 6, -- Daybreak
[88819] = 10, -- Daybreak
[94686] = 8, -- Supplication
[54149] = 15, -- Infusion of Light
[31884] = 20, -- Avenging Wrath
83,6 → 83,7
 
local INQUISITION = GetSpellInfo(84963)
local SELFLESSHEALER = GetSpellInfo(114250)
local DAYBREAK = GetSpellInfo(88819)
 
-- Return for anything unknown
local colors = setmetatable({
178,7 → 179,7
-- Force lock on login
if not db.locked then db.locked = true end
 
local class = select(2, UnitClass("player"))
local _, class = UnitClass("player")
if class == "PALADIN" then -- only do stuff if player is a paladin
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:Init()
222,13 → 223,12
-- Check talents for updates (Hand of Freedom)
function Blessed:UpdateDurations()
-- Sanctified Wrath increases duration of Avenging Wrath
if select(5, GetTalentInfo(14)) then
durations[31884] = 30
end
local _, _, _, _, wrath = GetTalentInfo(14)
if wrath then durations[31884] = 30 end
 
-- Glyph of Inquisition
for i=1, NUM_GLYPH_SLOTS do
local glyph = select(4, GetGlyphSocketInfo(i))
local _, _, _, glyph = GetGlyphSocketInfo(i)
if glyph == 63225 then
durations[84963] = 20
end
266,7 → 266,7
 
-- Always get rid of Beacon, to avoid duplicates due to being in different realms
if spellID == 53563 then
self:RemoveFrame(spellID, destGUID)
self:RemoveFrame(spellID, nil)
end
self:SetupIcon(spellID, destName, destGUID)
elseif (combatEvent == "SPELL_AURA_REFRESH") then
282,7 → 282,7
for i, frame in pairs(frames) do
frame:ClearAllPoints()
if i > 1 then
frame:SetPoint("LEFT", frames[i - 1], "RIGHT", 15, 0)
frame:SetPoint("LEFT", frames[i - 1], "RIGHT", iconSize/2, 0)
else
frame:SetPoint("CENTER", self.frame, "CENTER")
end
294,7 → 294,7
if #frames == 0 then return end
 
for i, frame in pairs(frames) do
if frame.id == spellID and frame.guid == destGUID then
if frame.id == spellID and (frame.guid == destGUID or not destGUID) then
frame:Hide()
table.remove(frames, i)
table.insert(framePool, frame)
374,16 → 374,20
local duration = durations[spellID]
 
if spellID == 84963 then
duration = select(6, UnitAura("player", INQUISITION))
local _, _, _, _, _, d = UnitAura("player", INQUISITION)
duration = d
end
 
local icon = select(3, GetSpellInfo(spellID))
local class = select(2, GetPlayerInfoByGUID(destGUID))
local _, _, icon = GetSpellInfo(spellID)
local _, class = GetPlayerInfoByGUID(destGUID)
 
frame.icon:SetTexture(icon)
if spellID == 114250 then
local stacks = select(4, UnitAura("player", SELFLESSHEALER))
local _, _, _, stacks = UnitAura("player", SELFLESSHEALER)
frame.target:SetFormattedText("|cff%s%s|r (%d)", colors[class], destGUID ~= pguid and string.sub(destName, 0, 3) or "You!", stacks or 0)
elseif spellID == 88819 then
local _, _, _, stacks = UnitAura("player", DAYBREAK)
frame.target:SetFormattedText("|cff%s%s|r (%d)", colors[class], destGUID ~= pguid and string.sub(destName, 0, 3) or "You!", stacks or 0)
else
frame.target:SetFormattedText("|cff%s%s|r", colors[class], destGUID ~= pguid and string.sub(destName, 0, 3) or "You!")
end
trunk/Blessed/Blessed.toc
1,8 → 1,8
## Interface: 50200
## Interface: 50300
## Title: Blessed
## Notes: Track Paladin stuff
## Author: Ailae of Emeriss-EU
## Version: 50200.1
## Version: 50300.1
## SavedVariables: BlessedDB
 
Blessed.lua