X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/c82178bdfc108f95b41c3d0ed88ffe26b834482f..922d6e483b5fd69e6d548b6c80b63a7c0f8059ef:/OmaCD/Cooldowns.lua?ds=sidebyside diff --git a/OmaCD/Cooldowns.lua b/OmaCD/Cooldowns.lua index 9d2f25f..b1e9670 100644 --- a/OmaCD/Cooldowns.lua +++ b/OmaCD/Cooldowns.lua @@ -226,7 +226,7 @@ local function updatePlayer() guidToId[guid] = "player"; guidToSpecid[guid] = specid; if specid == 105 then -- Druid - local _, _, _, talent = GetTalentInfo(6, 2, 1); + local _, _, _, talent = GetTalentInfo(6, 1, 1); updateDruid(guid, nil, talent); else updateUnitCD(guid); @@ -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");