View Single Post
11-13-14, 02:05 AM   #10
ObbleYeah
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 210
I've been using an extremely ugly method

Lua Code:
  1. if DraenorZoneAbilityFrame then
  2.         DraenorZoneAbilityFrame.ignoreFramePositionManager = true
  3.         DraenorZoneAbilityFrame:SetScale(.925)
  4.         DraenorZoneAbilityFrame.SpellButton.Icon:SetTexCoord(.1, .9, .1, .9)
  5. end
  6.  
  7. local function moveDraenor(self)
  8.     if not InCombatLockdown() then -- double-check
  9.            self:ClearAllPoints()
  10.            self:SetPoint()
  11.     end
  12. end
  13.    
  14.     local draenortime = 0
  15.    
  16.     DraenorZoneAbilityFrame:HookScript("OnUpdate", function(self, elapsed)
  17.         draenortime = draenortime + elapsed
  18.        
  19.         if draenortime > 2 then
  20.             if InCombatLockdown() then return end
  21.             moveDraenor(self)
  22.             draenortime = 0
  23.         end
  24.     end)

Last edited by ObbleYeah : 11-13-14 at 02:08 AM.
  Reply With Quote