Trigger Handling

Last night I was playing around with Trigger Handling. Basically what I'm going to try to do is the following:
After state is finished being checked, just before a player gets priority each trigger that is "active" will be locked in, and recorded to a list in TriggerHandler. I'll check many of the trigger requirements (host card zone, threshold, etc) before being marked as active. Then when we run the waiting triggers during the next state check, we'll run the second half of the active trigger's requirements (those specific to the runParams). This also should help speed up this portion of the code, since for each trigger we were looping through all of the cards and checking for its triggers, where now we'll just be assigning active triggers once for each check, and then we only loop through those triggers. Basically, since these triggers will already be "locked" then we won't have to worry about LKI information when dealing with the trigger firing.
My first tests are ETB, and LTB/Dies.
So for example, I want to do the following:
Cast Sengir Autocrat
Cast Blood Artist
Cast Damnation.
Autocrat should trigger once on ETB, once on LTB.
Blood Artist should trigger 5 times on Damnation resolution.
If anyone has specific triggers they want me to test while I work on this, please let me know. I'll slowly expand out as I get specific triggers working.
After state is finished being checked, just before a player gets priority each trigger that is "active" will be locked in, and recorded to a list in TriggerHandler. I'll check many of the trigger requirements (host card zone, threshold, etc) before being marked as active. Then when we run the waiting triggers during the next state check, we'll run the second half of the active trigger's requirements (those specific to the runParams). This also should help speed up this portion of the code, since for each trigger we were looping through all of the cards and checking for its triggers, where now we'll just be assigning active triggers once for each check, and then we only loop through those triggers. Basically, since these triggers will already be "locked" then we won't have to worry about LKI information when dealing with the trigger firing.
My first tests are ETB, and LTB/Dies.
So for example, I want to do the following:
Cast Sengir Autocrat
Cast Blood Artist
Cast Damnation.
Autocrat should trigger once on ETB, once on LTB.
Blood Artist should trigger 5 times on Damnation resolution.
If anyone has specific triggers they want me to test while I work on this, please let me know. I'll slowly expand out as I get specific triggers working.