Quantcast
Taint from script to move the arena frames (retail) - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-09-19, 12:27 AM   #1
V1X0
A Murloc Raider
Join Date: Mar 2009
Posts: 9
Taint from script to move the arena frames (retail)

I got a self made addon (just scripts) to move the default arena frames and do some more stuff (will post down below).

Every time I enter arena I get: "Interface failed because of addon." in the chat (yellow text) (my selfmade addon is called "^Arenaframes").

In my taint log I get this error code:
Code:
11/9 05:12:07.005  UnitFrameHealthBar_Update()
11/9 05:12:07.005  An action was blocked in combat because of taint from ^Arenaframes - ArenaEnemyFrames:Show()
11/9 05:12:07.005      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:94 ArenaEnemyFrames_UpdateVisible()
11/9 05:12:07.005      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:185 ArenaEnemyFrame_UpdatePlayer()
11/9 05:12:07.005      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:224
11/9 05:12:07.005  UnitFrameHealthBar_Update()
11/9 05:12:07.005  An action was blocked in combat because of taint from ^Arenaframes - ArenaEnemyFrame2PetFrame:Hide()
11/9 05:12:07.005      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:314 ArenaEnemyFrame_UpdatePet()
11/9 05:12:07.005      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:234
11/9 05:12:49.301  UnitFrameHealthBar_Update()
11/9 05:12:49.301  An action was blocked in combat because of taint from ^Arenaframes - ArenaEnemyFrames:Show()
11/9 05:12:49.301      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:94 ArenaEnemyFrames_UpdateVisible()
11/9 05:12:49.301      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:185 ArenaEnemyFrame_UpdatePlayer()
11/9 05:12:49.301      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:224
11/9 05:12:49.301  UnitFrameHealthBar_Update()
11/9 05:12:49.301  An action was blocked in combat because of taint from ^Arenaframes - ArenaEnemyFrame1PetFrame:Hide()
11/9 05:12:49.301      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:314 ArenaEnemyFrame_UpdatePet()
11/9 05:12:49.301      Interface\AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.lua:234
________

Heres the script (put into addon) I'm running that causing the problem. Any suggestion what's causing the taint and how to optimize the coding?

Code:
LoadAddOn("Blizzard_ArenaUI")

for i=1, 5 do
        _G["ArenaEnemyFrame"..i]:SetScale(1.5)
        _G["ArenaEnemyFrame"..i.."CastingBar"]:SetScale(1.5)
        _G["ArenaEnemyFrame"..i.."Name"]:Hide()
        _G["ArenaEnemyFrame"..i].specBorder:SetAlpha(0)
        _G["ArenaEnemyFrame"..i].specPortrait:SetAlpha(0)
end

ArenaEnemyFrame1:ClearAllPoints()
ArenaEnemyFrame2:ClearAllPoints()
ArenaEnemyFrame3:ClearAllPoints()
ArenaEnemyFrame4:ClearAllPoints()
ArenaEnemyFrame5:ClearAllPoints()

ArenaEnemyFrame1:SetPoint("CENTER",UIParent,"CENTER",343,44)
ArenaEnemyFrame2:SetPoint("CENTER",UIParent,"CENTER",343,18)
ArenaEnemyFrame3:SetPoint("CENTER",UIParent,"CENTER",343,-8)
ArenaEnemyFrame4:SetPoint("CENTER",UIParent,"CENTER",343,-34)
ArenaEnemyFrame5:SetPoint("CENTER",UIParent,"CENTER",343,-60)

ArenaEnemyFrame1.SetPoint = function() end
ArenaEnemyFrame2.SetPoint = function() end
ArenaEnemyFrame3.SetPoint = function() end
ArenaEnemyFrame4.SetPoint = function() end
ArenaEnemyFrame5.SetPoint = function() end
Makes the arenaframes look like this:

  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Taint from script to move the arena frames (retail)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off