--[[ lolCritcount by ]]-- Cargor (EU-Nozdormu) and Lolzen local addon = CreateFrame("Frame", nil, UIParent) local stateFrame = CreateFrame("MessageFrame", "MsgFrame", UIParent) local critcount, totaldmg = 0 function addon:new() self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") self:SetScript("OnEvent", self.event) stateFrame:SetTimeVisible(5) stateFrame:SetInsertMode("TOP") stateFrame:SetFrameStrata("HIGH") stateFrame:SetHeight(60) stateFrame:SetWidth(512) stateFrame:SetPoint("TOP", 0, -300) stateFrame:SetFontObject(ErrorFont) stateFrame:SetFont("Fonts\\FRIZQT__.TTF", 26, "OUTLINE") stateFrame:Show() end function addon:event() if(string.find(arg2, "_DAMAGE") and arg4==UnitName("player")) then if(arg17 and not(arg14 or arg15 or arg16)) then critcount = critcount + 1 totaldmg = totaldmg + arg12 else if(critcount and critcount>2) then stateFrame:AddMessage((critcount.." crits in a row! Total Damage: "..totaldmg), 1.0, 1.0, 1.0) end critcount = 0 totaldmg = 0 return nil end end end addon:new()