Would it be possible to do such a macro :

/ if live below 10%
/stopcasting
/cast Ice Block

I would like to have this button on my five mages, and spam it as soon as someone gets too damaged to make him specifically invulnerable.

Did you guys running several mages in you team find a solution for that ?