From 564037b353c19122d92ea12ca1feaae3db4f8a4e Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 19 Oct 2010 03:03:26 +0000 Subject: [PATCH] - fixed Vengeance module to work for all classes --- modules/Vengeance.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/Vengeance.lua b/modules/Vengeance.lua index 9d697fb..58714e4 100644 --- a/modules/Vengeance.lua +++ b/modules/Vengeance.lua @@ -58,8 +58,9 @@ function Vengeance.prototype:UpdateCurrent(event, unit) return end - local name, _, _, _, _, _, _, _, _, _, auraID = UnitAura(unit, GetSpellInfo(VENGEANCE_SPELL_ID)) - if (name) then + local spellName = GetSpellInfo(VENGEANCE_SPELL_ID) + local name = UnitAura(unit, spellName) + if name then -- Buff found, copy it into the buffer for scanning self.tooltipBuffer:ClearLines() self.tooltipBuffer:SetUnitBuff(unit, name)