Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
- frame:SetScript("OnEvent", function(self, event, ...)
- local scm = SendChatMessage
- if event == "COMBAT_LOG_EVENT_UNFILTERED" then
- local arg = { ... }
- for i,v in ipairs(arg) do
- if (string.find(arg[i], "(.*)Grounding(.*)Totem(.*)")) then
- local blah = table.concat(arg, ", ")
- if (arg[2] == "SWING_DAMAGE") then
- scm(arg[7].. " was killed.")
- end
- if (arg[2] == "SPELL_DAMAGE") then
- local spell = GetSpellLink(arg[10])
- if spell then
- print("|cff00ccff" ..arg[4].. "|r hits |cff00ccff" ..arg[7].. "|r for |cff00ccff" ..arg[12] - arg[13].. " (" ..arg[13].. " Overkill) with |cff00ccff" ..spell)
- end
- end
- if (arg[2] == "RANGE_DAMAGE") then
- local spell = GetSpellLink(arg[9])
- SendChatMessage("|cff00ccff" ..arg[4].. "|r hits |cff00ccff" ..arg[7].. "|r for |cff00ccff" ..arg[12] - arg[13].. " (" ..arg[13].. " Overkill) with |cff00ccff" ..spell, "SAY")
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement