Auto-translated
In the extended editor mode, you can find the settings for this spell, and it seems there’s even a dependency on the hero’s main stats. But as for damaging your own troops… the spell itself is implemented at the game engine level, as far as I understand. For ourselves (our team), we only left the option to edit the damage.