From 08251f83f99957e472b328caee22fbfaf5372305 Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Sun, 6 May 2018 03:03:44 +0300 Subject: [PATCH] Fix OmaCD UNIT_SPELLCAST_SUCCEEDED --- OmaCD/Cooldowns.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OmaCD/Cooldowns.lua b/OmaCD/Cooldowns.lua index 9d2f25f..5f19695 100644 --- a/OmaCD/Cooldowns.lua +++ b/OmaCD/Cooldowns.lua @@ -365,7 +365,7 @@ local events = { end end end, - ["UNIT_SPELLCAST_SUCCEEDED"] = function(id, _, _, _, spellid) + ["UNIT_SPELLCAST_SUCCEEDED"] = function(id, _, spellid) local guid = idToGuid[id]; if guid and frames[guid] then local frame = frames[guid][spellid]; @@ -417,7 +417,5 @@ local function cdtracker() CTimerAfter(0.5, tick); end -cdframe:SetScript("OnEvent", function(self, event) - return cdtracker(); -end); +cdframe:SetScript("OnEvent", cdtracker); cdframe:RegisterEvent("PLAYER_LOGIN"); -- 2.39.5