ItemRack Classic

ItemRack Classic

7M Downloads

taint when load addon during combat

iwowui opened this issue ยท 1 comments

commented

my modified version:

`
ItemRack.InitButtons() in ItemRackButtons.lua
local ircb = CreateFrame("Frame");
function ItemRack.InitButtons()
if InCombatLockdown() then
ircb:RegisterEvent("PLAYER_REGEN_ENABLED");
ircb:SetScript("OnEvent", function(self, event)
ItemRack.InitButtons();
ircb:UnregisterEvent("PLAYER_REGEN_ENABLED");
end)
return;
end
...
end

ItemRack.SetSetBindings() in ItemRack.lua
local ircb = CreateFrame("Frame");
function ItemRack.SetSetBindings()
if InCombatLockdown() then
ircb:RegisterEvent("PLAYER_REGEN_ENABLED");
ircb:SetScript("OnEvent", function(self, event)
ItemRack.SetSetBindings();
ircb:UnregisterEvent("PLAYER_REGEN_ENABLED");
end)
return;
end
...
end
`

commented

Hi
Can you send a pull request please?