That wouldn't solve your issue, there are a lot of skills that they can spam to prevent their characters from being tagged as idle.
But if you really wanna do it, here's my recommendation:
1. Create a mapflag zone that disables the skill
2. Apply the mapflag in all maps except the training grounds and WoE castles