From ae94b5d1502760b307a20fdaa4f200fff25c2dbd Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 10 May 2024 09:24:00 +0200 Subject: [PATCH] thirdparty: add support for superwow channel skills --- modules/thirdparty-vanilla.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/thirdparty-vanilla.lua b/modules/thirdparty-vanilla.lua index 0a73f50a..329fd505 100644 --- a/modules/thirdparty-vanilla.lua +++ b/modules/thirdparty-vanilla.lua @@ -805,7 +805,7 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function() local unitcast = CreateFrame("Frame") unitcast:RegisterEvent("UNIT_CASTEVENT") unitcast:SetScript("OnEvent", function() - if event == "UNIT_CASTEVENT" and arg3 == "START" then + if arg3 == "START" or arg3 == "CAST" or arg3 == "CHANNEL" then -- human readable argument list local guid = arg1 local target = arg2 @@ -831,7 +831,7 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function() libcast.db[guid].start = GetTime() libcast.db[guid].casttime = timer libcast.db[guid].icon = icon - libcast.db[guid].channel = false + libcast.db[guid].channel = event_type == "CHANNEL" or false -- write state variable superwow_active = true