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