Commit a2cbb92d authored by Robin Schoonover's avatar Robin Schoonover

In 8.x, spells no longer have ranks, so fix changed return values

parent 0c5fd0ea
......@@ -19,7 +19,7 @@ addon:HookTipScript("OnTooltipSetItem", function(self)
end)
addon:HookTipScript("OnTooltipSetSpell", function(self)
local name, rank, spellID = self:GetSpell()
local name, spellID = self:GetSpell()
addon:AddIDLine(self, "Spell", spellID)
end)
......@@ -197,16 +197,16 @@ addon:HookTip("SetTradeSkillItem", function(tip, itemIdx, reagentIdx)
end)
addon:HookTip("SetUnitAura", function(self, unit, index, filter)
local _,_,_,_,_,_,_,_,_,_, spellID = UnitAura(unit, index, filter)
local _,_,_,_,_,_,_,_,_, spellID = UnitAura(unit, index, filter)
addon:AddIDLine(self, "Spell", spellID)
end)
addon:HookTip("SetUnitBuff", function(self, unit, index, filter)
local _,_,_,_,_,_,_,_,_,_, spellID = UnitBuff(unit, index, filter)
local _,_,_,_,_,_,_,_,_, spellID = UnitBuff(unit, index, filter)
addon:AddIDLine(self, "Spell", spellID)
end)
addon:HookTip("SetUnitDebuff", function(self, unit, index, filter)
local _,_,_,_,_,_,_,_,_,_, spellID = UnitDebuff(unit, index, filter)
local _,_,_,_,_,_,_,_,_, spellID = UnitDebuff(unit, index, filter)
addon:AddIDLine(self, "Spell", spellID)
end)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment