changeset 47:afd410b949ea

use the slot name on the bar for weapon enchants, guess at a fix for an error with OOC scheduling
author Chris Mellon <arkanes@gmail.com>
date Sat, 12 Mar 2011 08:34:52 -0600
parents 04d0d145a676
children ae92a56133ad
files KBF.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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