The function get_random_hero() can loop forever, if all positions of the current group heros are greater than the number of heros in the group.
It can best figured out with one hero who is not in the first position.
If you walk through the city and trigger a city event (Thorwal 1%) you often get this endless loop.
The function get_random_hero() can loop forever, if all positions of the current group heros are greater than the number of heros in the group.
It can best figured out with one hero who is not in the first position. If you walk through the city and trigger a city event (Thorwal 1%) you often get this endless loop.