Just make the target far enough away from them that you only hit the enemies.
OR do what I would do and teach them to not run in like maniacs while I have the ability to blow them up with one spell.
Also, you missed the point of Dandu, damage dealing spells are generally weaker than the...