a) How do you determine if your hero is defending or attacking? (IsAttacker works very strangely)
b) What UnitName should I specify? Is it the name of the unit given to it on the map, or the script name?
c) How do you make a hero cast a spell at the beginning of the battle or in sync with another action (like Frida's Divine Retribution or Leto's Plague)?
I would appreciate it if you could provide some small examples, if possible, because I won't be able to figure it out otherwise.
Thank you in advance.