The console is complaining :(. It says:
Script ERROR: attempt to call a nil value
This happens at the very end – it seems to be the function in question.
P.S.: The script editor complained about the second 'end', so I removed it. Maybe I need to add some kind of 'else'?
You're calling 'nil' instead of something. Check if the hero, function, or parameters exist. Unless, of course, the problem isn't with the word 'function' itself. :)
"Zosya" is obviously a fictional name. It should be the name of the enemy hero. If the enemy hero's name can be anything, just remove the condition.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...