# HG changeset patch # User Chris Mellon # Date 1299940492 21600 # Node ID afd410b949ea696584edfbea96e8942a49e5a5cd # Parent 04d0d145a676f896b58664a1fc7d4a3fe0d3cf38 use the slot name on the bar for weapon enchants, guess at a fix for an error with OOC scheduling diff -r 04d0d145a676 -r afd410b949ea KBF.lua --- a/KBF.lua Wed Feb 23 19:03:17 2011 -0600 +++ b/KBF.lua Sat Mar 12 08:34:52 2011 -0600 @@ -149,7 +149,7 @@ -- SAH binds the offhand enchant to the main hand for removal purposes. -- fix it up if we're out of combat -- TODO: maybe this should only happen if we're dirty - self:QueueForOOC(function() tempEnchant:SetAttribute('target-slot', 17) end) + self:QueueForOOC(function() self.secureHeader:GetAttribute("tempEnchant2"):SetAttribute('target-slot', 17) end) end if ( tempEnchant and GameTooltip:IsOwned(tempEnchant) ) then self:OnEnter(tempEnchant) @@ -299,6 +299,8 @@ -- maybe use the tag? -- Or maybe use the slot name, ie Flametongue / Main Hand name, _, _ = GetSpellInfo(spellId) + local slots = {[16] = "Main Hand", [17] = "Off Hand", [18] = "Thrown"} + name = name .. " (" .. slots[slot] .. ")" break end end