• 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.

Spell Damage = Attack Damage Hero

Status
Not open for further replies.
Level 3
Joined
Jan 1, 2013
Messages
43
anyone can tell me how to make ability, which the damage of the spell equal to damage hero, like Ember Spirit (DoTa), second spell....

I want the hero move on the straight line, damaging everything in this path, but the damage equal to attack damage of heroes...

How i do it????
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
You will have to use a DDS (Damage Detection System), and when you deal damage store it and then trigger the spell to use the stored damage (Through a variable used in the system).
The downside to this, if the unit doesn't hit any unit yet, and cast the spell, it deals 0 damage - but I bet this would be unlikely to happen, no ?
Because a unit MUST have hit any unit, once, before casting any spells to engage other powerful enemies.
 
Status
Not open for further replies.
Top