Hello!
I am having trouble with this: I want to heal each unit in a unit group for 15% of their missing hp. However, after testing it a bit, war3 says my max life is always same as life of a unit?
What am I doing wrong?
I am having trouble with this: I want to heal each unit in a unit group for 15% of their missing hp. However, after testing it a bit, war3 says my max life is always same as life of a unit?
What am I doing wrong?
-
Apply Healing
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Blood
-
Actions
- Set xxx_bloodloc = (Position of (Item being manipulated))
- Set xxx_drawbloodgroup = (Units within 600.00 of xxx_bloodloc matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))
-
Unit Group - Pick every unit in xxx_drawbloodgroup and do (Actions)
-
Loop - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (0.15 x ((Max life of (Picked unit)) - (Life of (Picked unit)))))
- Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Human\Heal\HealTarget.mdl
- Special Effect - Destroy (Last created special effect)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_xxx_bloodloc)
- Custom script: call DestroyGroup(udg_xxx_drawbloodgroup)
-
Events