From 033809b9fd214b53418bca0164469ce8320eaa98 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 29 May 2025 18:26:33 +0200 Subject: [PATCH] superwow: disable combat log parsers of libcast --- modules/superwow.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/modules/superwow.lua b/modules/superwow.lua index 5a4619f1..af30210d 100644 --- a/modules/superwow.lua +++ b/modules/superwow.lua @@ -252,6 +252,29 @@ pfUI:RegisterModule("superwow", "vanilla", function () local supercast = CreateFrame("Frame") supercast:RegisterEvent("UNIT_CASTEVENT") supercast:SetScript("OnEvent", function() + if not supercast.init then + -- disable combat parsing events in superwow mode + libcast:UnregisterEvent("CHAT_MSG_SPELL_SELF_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_HOSTILEPLAYER_BUFF") + libcast:UnregisterEvent("CHAT_MSG_SPELL_FRIENDLYPLAYER_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_FRIENDLYPLAYER_BUFF") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_BUFFS") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_BUFFS") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PARTY_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PARTY_BUFF") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_PARTY_BUFFS") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_CREATURE_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS") + libcast:UnregisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE") + libcast:UnregisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_BUFF") + supercast.init = true + end + if arg3 == "START" or arg3 == "CAST" or arg3 == "CHANNEL" then -- human readable argument list local guid = arg1