Auto-translated
Hi! So, I've started working on the combat script again. I want to create two fights with two heroes, but I'm having trouble figuring out how to optimize it. The thing is, I don't have a plan for these heroes to be real "boss" characters that the player only attacks. They're more like regular bots with a large army, running around and consuming everything on the map. I want it so that when my hero attacks them, or they attack my hero, it triggers the combat script. Right now, I'm only thinking of writing the entire combat sequence twice, once for when the player attacks and once for when they defend, but maybe there's a way to simplify this so that the game only needs to check once who attacked whom and then use a variable for the correct hero in all functions (like UnitCastGlobalSpell)?