Added 7 hours ago
How does the combatReadyPerson() function work?
Code:
function Start()
...
currentUnit = combatReadyPerson()
if(IsHero(currentUnit)) then
...
It doesn't work because currentUnit always takes a zero value, although combatReadyPerson() should return a string with the name of the unit at the beginning of the battle.