View Single Post
10/25/15, 03:36 PM   #26
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,579
It seems regardless of how you register them it is always OR. I register my filter like this:
Lua Code:
  1. local filters = {
  2.     REGISTER_FILTER_COMBAT_RESULT, ACTION_RESULT_DIED,
  3.     REGISTER_FILTER_COMBAT_RESULT, ACTION_RESULT_DIED_XP,
  4.     REGISTER_FILTER_COMBAT_RESULT, ACTION_RESULT_KILLING_BLOW,
  5. }
  6. EVENT_MANAGER:AddFilterForEvent(handle, EVENT_COMBAT_EVENT, unpack(filters))
and receive events for any of the 3 cases.

The lifetime is something I would be interested in too. I register them multiple times right now. No idea if that is necessary, or maybe even causes some trouble.
  Reply With Quote