- fixed Vengeance module to work for all classes

This commit is contained in:
Parnic
2010-10-19 03:03:26 +00:00
parent 843129c900
commit 564037b353

View File

@ -58,8 +58,9 @@ function Vengeance.prototype:UpdateCurrent(event, unit)
return return
end end
local name, _, _, _, _, _, _, _, _, _, auraID = UnitAura(unit, GetSpellInfo(VENGEANCE_SPELL_ID)) local spellName = GetSpellInfo(VENGEANCE_SPELL_ID)
if (name) then local name = UnitAura(unit, spellName)
if name then
-- Buff found, copy it into the buffer for scanning -- Buff found, copy it into the buffer for scanning
self.tooltipBuffer:ClearLines() self.tooltipBuffer:ClearLines()
self.tooltipBuffer:SetUnitBuff(unit, name) self.tooltipBuffer:SetUnitBuff(unit, name)