# HG changeset patch # User Chris Mellon # Date 1298509397 21600 # Node ID 04d0d145a676f896b58664a1fc7d4a3fe0d3cf38 # Parent ca720b4b543509a0376cfc7dea34a659ef9b7119 fix some drycoded OOC stuff diff -r ca720b4b5435 -r 04d0d145a676 KBF.lua --- a/KBF.lua Sat Feb 19 07:23:26 2011 -0600 +++ b/KBF.lua Wed Feb 23 19:03:17 2011 -0600 @@ -70,7 +70,7 @@ -- if called when OOC, the function will be called immediately, unless the alwaysQueue parameter is true, -- in which case it will be appended normally function kbf:QueueForOOC(func, alwaysQueue) - if InCombatLockDown() or alwaysQueue then + if InCombatLockdown() or alwaysQueue then tinsert(self.oocQueue, func) else func() @@ -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 - QueueForOOC(function() tempEnchant:SetAttribute('target-slot', 17) end) + self:QueueForOOC(function() tempEnchant:SetAttribute('target-slot', 17) end) end if ( tempEnchant and GameTooltip:IsOwned(tempEnchant) ) then self:OnEnter(tempEnchant) @@ -168,7 +168,7 @@ self.tempEnchant3:SetScript("OnLeave", function() GameTooltip:Hide() end) self.tempEnchant3:EnableMouse(true) --TODO: queue up for setting when leaving combat - QueueForOOC(function() self.tempEnchant3:SetAttribute('target-slot', 18) end) + self:QueueForOOC(function() self.tempEnchant3:SetAttribute('target-slot', 18) end) -- set up the tooltip end -- TODO: If we're out of combat and theres an OH enchant,