• 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 that heals %

Status
Not open for further replies.
Level 4
Joined
Jan 3, 2012
Messages
60
How do i make a spell that do this: when you hit a target, you hero gain 5% of your hero's total health?
 
Level 18
Joined
May 11, 2012
Messages
2,108
Use damage detection system.

Check when your unit damages another unit, perform check (physical attack, target not structure etc...) and then set your unit's life to your unit's life + (max life of your unit * 0.05).

I think this shall do.
 
Status
Not open for further replies.
Top