Is there a way to let AI learn that my Diamond Dragon's breath attack's secondary target won't deal damage to friendly troops (but the main target still will, if it's hypnotized)?
I can write something like this:
This works almost perfect but I want to avoid setting the damage to 0 for the main target. It seems there is no classic erm way to know whether a target is the secondary target of breath attack or main in OnStackToStackDamage.
Edit:
I made it with some enlightenment from daemon_n. A hook at 441487 makes the whole thing very straightforward.