button reset to zero by changing target?

Hello,

I use your addon to create this macro:
/cast Double dose
/cast Tir rapide

However, in order to be optimal, it would be necessary that in case of change of target double tap becomes again the first.

Is it possible? after a fight the macro is reset, but it should be done by changing the target too.

thx