View Single Post
11-12-19, 05:37 PM   #9
V1X0
A Deviate Faerie Dragon
Join Date: Mar 2009
Posts: 10
Originally Posted by Terenna View Post
You could try
Lua Code:
  1. hooksecurefunc(ArenaEnemyFrame1, 'SetPoint', function(self)
  2.     local a, b, c, d, e = self:GetPoint()
  3.     if (a ~= 'CENTER' or c ~= 'CENTER' or d ~= 343 or e ~= 44) then
  4.         ArenaEnemyFrame1:ClearAllPoints()
  5.         self:SetPoint('CENTER', UIParent, 'CENTER', 343, 44)
  6.     end
  7. end)
  8.  
  9. hooksecurefunc(ArenaEnemyFrame2, 'SetPoint', function(self)
  10.     local a, b, c, d, e = self:GetPoint()
  11.     if (a ~= 'CENTER' or c ~= 'CENTER' or d ~= 343 or e ~= 18) then
  12.         ArenaEnemyFrame2:ClearAllPoints()
  13.         self:SetPoint('CENTER', UIParent, 'CENTER', 343, 18)
  14.     end
  15. end)
  16.  
  17. hooksecurefunc(ArenaEnemyFrame3, 'SetPoint', function(self)
  18.     local a, b, c, d, e = self:GetPoint()
  19.     if (a ~= 'CENTER' or c ~= 'CENTER' or d ~= 343 or e ~= -8) then
  20.         ArenaEnemyFrame3:ClearAllPoints()
  21.         self:SetPoint('CENTER', UIParent, 'CENTER', 343, -8)
  22.     end
  23. end)
  24.  
  25. hooksecurefunc(ArenaEnemyFrame4, 'SetPoint', function(self)
  26.     local a, b, c, d, e = self:GetPoint()
  27.     if (a ~= 'CENTER' or c ~= 'CENTER' or d ~= 343 or e ~= -34) then
  28.         ArenaEnemyFrame4:ClearAllPoints()
  29.         self:SetPoint('CENTER', UIParent, 'CENTER', 343, -34)
  30.     end
  31. end)
  32.  
  33. hooksecurefunc(ArenaEnemyFrame5, 'SetPoint', function(self)
  34.     local a, b, c, d, e = self:GetPoint()
  35.     if (a ~= 'CENTER' or c ~= 'CENTER' or d ~= 343 or e ~= -60) then
  36.         ArenaEnemyFrame5:ClearAllPoints()
  37.         self:SetPoint('CENTER', UIParent, 'CENTER', 343, -60)
  38.     end
  39. end)
I appreciate the try but unfortunately it didn't work (positions reset to top right (default) when updating from stealther/invis, plus gave me C stack overflow lua error).

It's something with stealthers, invisibility. When the arena frames "update" after it, they reset or give me taint.
__

If anyone wanna keep experimenting/trying, can do 3v3 skirmishes and try there, see how it behaves when they update mid game cus of stealth or invisibility.
  Reply With Quote