I'm making a skill on a Hero where he deals a portion of his Agility on attacks.
To do this, I've created a Damage detection trigger that gains an Event line every time a new unit enters the map. From there, the damage would trigger every time the "Damage Source" was the Hero.
However, this method has a bad interaction with Cleave, Spiked Carapace, Envenomed Weapons.. basically any default spell where the actual Hero is the source of the damage. I have items on the map using Cleave and Spiked Carapace, which means the Hero could purchase those items and potentially abuse the damage.
Is there any way to detect attack damage only and not other sources of damage? Or do I have to resort to restricting those items on the Hero?
To do this, I've created a Damage detection trigger that gains an Event line every time a new unit enters the map. From there, the damage would trigger every time the "Damage Source" was the Hero.
However, this method has a bad interaction with Cleave, Spiked Carapace, Envenomed Weapons.. basically any default spell where the actual Hero is the source of the damage. I have items on the map using Cleave and Spiked Carapace, which means the Hero could purchase those items and potentially abuse the damage.
Is there any way to detect attack damage only and not other sources of damage? Or do I have to resort to restricting those items on the Hero?