From b4925fc9fb49bb5aa81ca094b3de6883e192100a Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 17 Dec 2019 11:52:13 +0100 Subject: [PATCH] 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. --- init/modules.xml | 1 + modules/combatlogfix.lua | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 modules/combatlogfix.lua diff --git a/init/modules.xml b/init/modules.xml index 676cec85..927c822e 100644 --- a/init/modules.xml +++ b/init/modules.xml @@ -61,4 +61,5 @@ + diff --git a/modules/combatlogfix.lua b/modules/combatlogfix.lua new file mode 100644 index 00000000..99ac6a0a --- /dev/null +++ b/modules/combatlogfix.lua @@ -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)