View Single Post
Old 11-29-12, 05:49 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,290
Killing the loss of control actionbutton cooldown

Source: http://www.arenajunkies.com/topic/23...orking-method/

Lua Code:
  1. local disableLossOfControlCooldown = function()
  2.   for _, b in pairs(ActionBarActionEventsFrame.frames) do
  3.     b.cooldown:SetLossOfControlCooldown(0,0)
  4.   end
  5. end
  6.  
  7. local f = CreateFrame("Frame")
  8. f:RegisterEvent("LOSS_OF_CONTROL_ADDED")
  9. f:RegisterEvent("LOSS_OF_CONTROL_UPDATE")
  10. f:SetScript("OnEvent", disableLossOfControlCooldown)

Not sure if there is anything better. Maybe it even possible to just kill SetLossOfControlCooldown.
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline   Reply With Quote