Nice writeup, just a little bit behind the times. Instead of filtering all combat events in Lua, you should always try to filter them with the built in
event filters first, as they offer way better better performance for this task. Afterwards you can filter the remaining events in Lua without much impact