crb
06-09-2010, 11:31 AM
Detecting an attack against you is pretty easy.
However detecting a spell cast against you is hard.
Whether it is an attack spell or a buff the gesture line is the same:
Billboy gestures at you.
So... you'd need to detect that lines, then detect the line immediately after, and see if it contains a CS vs TD roll.
I do not know how to do this. I could go from detecting the gesture to a waitfortimeout with 1 second or something. But that isn't 100%, it could result in false positives.
However detecting a spell cast against you is hard.
Whether it is an attack spell or a buff the gesture line is the same:
Billboy gestures at you.
So... you'd need to detect that lines, then detect the line immediately after, and see if it contains a CS vs TD roll.
I do not know how to do this. I could go from detecting the gesture to a waitfortimeout with 1 second or something. But that isn't 100%, it could result in false positives.