Yeah, it's a pity that you can't pass heroes as arguments. Unfortunately, nothing I tried in the combat script itself worked; I tested it on the playAnimation function and constantly received the error "Hero "hero" doesn't exist," so I came to the conclusion that the combat script is essentially a separate script, so you can load it a bit. Therefore, I'll write the fight twice, depending on which side the heroes are on. However, thank you for your answer and recommendation
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!
Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.
