View Single Post
10-03-05, 07:34 AM   #4
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
But there isn't any Crit info...
arg1 is the line that would go to a window if that combat spam is enabled. It says if it crits or not. If you're only worried about the player making critical damage hits and unconcerned with how often or with what effects (which can be lifted from combat spam too), use this filter:

if (event=="CHAT_MSG_COMBAT_SELF_HITS" or event=="CHAT_MSG_SPELL_SELF_DAMAGE") and string.find(arg1,"^You.- crit.+for %d+") then
-- player performed a crit by melee or non-melee
end
  Reply With Quote