M
mc117
Guest
The way my spell works is a buff is cast on a hero. When the hero's life reaches a certain percentage, it removes the original buff and casts a new one on it.
Is there any way I can make detect the level of the original buff cast on the unit so that I can make the second buff the correct level? Or do I have to make a differnet buff for each level so i can detect each one?
Code:
Events
Unit - A unit is attacked
Conditions
(Life of (attacked Unit)) less than or equal to ((max life of (attacked unit)) x 0.20)
((Attacked unit) has buff Inner Spirit) Equal to True
((Attacked unit) has buff Spirit Release Equal to False
Actions
Unit - Remove Inner Spirit buff from (attacked unit)
Unit - Create 1 dummy cast for owner of attacked unit facing default building angle
Unit - Order last created unit to Human Priest - Inner Fire attacked unit
Unit - Add a 2.00 second generic timer to last created unit
Is there any way I can make detect the level of the original buff cast on the unit so that I can make the second buff the correct level? Or do I have to make a differnet buff for each level so i can detect each one?