C
chrisISrad
Guest
Hey guys, I used to have an account on here a while back. Only thing is, I had some trouble retrieving it, so I made a new. Anyway, I'm working on this ability for my hero "The Chromatic Bear". The ability consists of adding armor to the hero (easy) but returning 10%, 15%, etc of the damage done to the hero back to him. Seems logical, but having trouble with it actually doing what I want it to do. Please help! Thanks in advance!
Code:
Events
Unit - A unit is attacked
Conditions
Actions
If (All conditions are True) the do (The Actions) else do (Else Actions)
If - Conditions
(Unit type of (Attacked unit)) Equal to Chromatic Bear
((Attacked Unit) has buff Flesh of the Timeless) Equal to True
Then - Actions
Unit - Set life of (Attacked Unit) to ((Life of (Attacked Unit)) + ((Real ((Point-Value of (Damage Source)))) x 0.15))
Else - Actions
Do Nothing