Mercurial > wow > kbf
changeset 46:04d0d145a676
fix some drycoded OOC stuff
author | Chris Mellon <arkanes@gmail.com> |
---|---|
date | Wed, 23 Feb 2011 19:03:17 -0600 |
parents | ca720b4b5435 |
children | afd410b949ea |
files | KBF.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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,