I was wondering if it is possible to have a Hero cast a spell that creates a unit with the same amount of health as it. I know how to create the unit and all, but I don't know how to make it's maximum health equal to that of the caster. Is it possible in data? If not, I have no problem doing it in triggers, considering that seems like the only way to do it. As far as efficiency for triggers, I was thinking about taking the Unit's maximum health, dividing it by the Hero's health, Multiplying that by 100, subtracting it by 100, multiplying that by -1, to make it positive, and reducing dmg by that amt. For example, Hero has 2500 health and Unit has 500.
500 / 2500 = .2
.2 * 100 = 20
20 - 100 = -80
-80*-1 = 80
Reduce incoming dmg by 80%
-Kyuft:shades:
500 / 2500 = .2
.2 * 100 = 20
20 - 100 = -80
-80*-1 = 80
Reduce incoming dmg by 80%
-Kyuft:shades: