Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
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)?