Auto-translated
1) How can I make the human player lose a battle in a standard way? That is, at the beginning, auto-win/lose is disabled and enabled only when all additional units are summoned. How can I make the human player lose, regardless of the "dwarf" or "atdwarf" variables, if all of their units are killed?
2) In the attacking script, the hero first casts a general speed-up spell. However, on the next turn, he doesn't cast the second spell. There are no errors in the console. The defensive script applies all spells as expected.
3) I noticed that the script throws an error if the hero cannot cast a spell (all creatures are immune to the spell). How can I fix this? That is, how can I prevent him from casting if there is no one to cast it on?
2) What spells does he cast in the defensive and attacking parts? It's clear that they are different, but which ones specifically? Perhaps the problem lies in the spell being inapplicable.
3) Wouldn't the spell not be cast anyway when an error occurs? What do you want to happen in the end?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4