local SpellstealReport = CreateFrame("Frame")local function OnEvent(self, event, ...) local dispatch = self[event] if dispatch then dispatch(self, ...) endendSpellstealReport:SetScript("OnEvent", OnEvent)SpellstealReport:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")function SpellstealReport:COMBAT_LOG_EVENT_UNFILTERED(...) -- process event here local aEvent = select(2, ...) local aUser = select(4, ...) local aSpellID = select(12, ...) if aUser == UnitName("player") then if aEvent== 'SPELL_STOLEN' then DEFAULT_CHAT_FRAME:AddMessage(date("%H:%M:%S") .. ": You stole " .. GetSpellLink(aSpellID)) end if aEvent == 'SPELL_DISPEL_FAILED' then DEFAULT_CHAT_FRAME:AddMessage(date("%H:%M:%S") .. ": You attempted to steal " .. GetSpellLink(aSpellID) .. " but it got resisted") end endend