combatlogfix: auto reset combat logs for tbc

Fixes the combatlog break bugs that exist since patch 2.4 by simply
clearing the whole log on every update. This is required in order
to receive new log events. Otherwise, addons like Omen or Recount
won't work and simply don't receive any new data at a given time.
This commit is contained in:
shagu
2019-12-17 11:52:13 +01:00
parent 7fa7f3b3dd
commit b4925fc9fb
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -61,4 +61,5 @@
<Include file="..\modules\afkcam.lua"/>
<Include file="..\modules\screenshot.lua"/>
<Include file="..\modules\addoncompat.lua"/>
<Include file="..\modules\combatlogfix.lua"/>
</Ui>
+7
View File
@@ -0,0 +1,7 @@
pfUI:RegisterModule("combatlogfix", "tbc", function ()
-- Fixes the combatlog break bugs that exist since patch 2.4 by simply clearing the whole log
-- on every update. This is required in order to receive new log events. Otherwise, addons like
-- Omen or Recount won't work and simply don't receive any new data at a given time.
local combatlog = CreateFrame("Frame", "pfCombatLogFix", UIParent)
combatlog:SetScript("OnUpdate", CombatLogClearEntries)
end)