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).
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация