it seems that if a creature is immune to the spell being used, the script will produce an error. Or maybe there isn't enough mana, for example.
Check out the map 'Reconquista', I don't remember the author - it has a very large and fully functional combat script.
thanks, I looked at his scripts... my jaw dropped :smile01: this guy is simply a coding maestro (I glanced through it, I haven't seen such extensive functionality yet).