This popped just into my mind;
you know Bash has allowed targets right? Like ground/enemy/neutral/air/etc.
The unit you dont want to get bashed should have a different catorgy (like Ancient -> never used).
I actually did this once for a Bash that only worked vs Undead (Holy Bash ^^)