• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Damage Detection from attacks only

Status
Not open for further replies.
Level 4
Joined
Mar 6, 2008
Messages
73
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?
 
Status
Not open for further replies.
Top