Detecting if Searing Arrows is active is the easy part - you just set a variable whenever the unit is issued the searingarrows/unsearingarrows order. The tricky part will be registering the attack successfully landing. You'll need to use a damage engine and trigger all non-basic attack damage in your map.